MAPREDUCE-5830. Added back the private API HostUtil.getTaskLogUrl(..) for binary compatibility with older clients like Hive 0.13. Contributed by Akira Ajisaka.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1604230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d9eb18bb2e
commit
1355ff6132
@ -281,6 +281,10 @@ Release 2.4.1 - 2014-06-23
|
|||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
||||||
|
MAPREDUCE-5830. Added back the private API HostUtil.getTaskLogUrl(..) for
|
||||||
|
binary compatibility with older clients like Hive 0.13. (Akira Ajisaka via
|
||||||
|
vinodkv)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -38,6 +38,21 @@ public static String getTaskLogUrl(String scheme, String taskTrackerHostName,
|
|||||||
httpPort + "/tasklog?attemptid=" + taskAttemptID);
|
httpPort + "/tasklog?attemptid=" + taskAttemptID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Always throws {@link RuntimeException} because this method is not
|
||||||
|
* supposed to be called at runtime. This method is only for keeping
|
||||||
|
* binary compatibility with Hive 0.13. MAPREDUCE-5830 for the details.
|
||||||
|
* @deprecated Use {@link #getTaskLogUrl(String, String, String, String)}
|
||||||
|
* to construct the taskLogUrl.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public static String getTaskLogUrl(String taskTrackerHostName,
|
||||||
|
String httpPort, String taskAttemptID) {
|
||||||
|
throw new RuntimeException(
|
||||||
|
"This method is not supposed to be called at runtime. " +
|
||||||
|
"Use HostUtil.getTaskLogUrl(String, String, String, String) instead.");
|
||||||
|
}
|
||||||
|
|
||||||
public static String convertTrackerNameToHostName(String trackerName) {
|
public static String convertTrackerNameToHostName(String trackerName) {
|
||||||
// Ugly!
|
// Ugly!
|
||||||
// Convert the trackerName to its host name
|
// Convert the trackerName to its host name
|
||||||
|
Loading…
Reference in New Issue
Block a user