Author: vinodkv Date: Fri Jun 20 18:34:07 2014 New Revision: 1604235 URL: http://svn.apache.org/r1604235 Log: MAPREDUCE-5830. Added back the private API HostUtil.getTaskLogUrl(..) for binary compatibility with older clients like Hive 0.13. Contributed by Akira Ajisaka. svn merge --ignore-ancestry -c 1604232 ../branch-2.4
Modified: hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/CHANGES.txt hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/util/HostUtil.java Modified: hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/CHANGES.txt?rev=1604235&r1=1604234&r2=1604235&view=diff ============================================================================== --- hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/CHANGES.txt (original) +++ hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/CHANGES.txt Fri Jun 20 18:34:07 2014 @@ -8,6 +8,10 @@ Release 2.4.1 - 2014-06-23 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 BUG FIXES Modified: hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/util/HostUtil.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/util/HostUtil.java?rev=1604235&r1=1604234&r2=1604235&view=diff ============================================================================== --- hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/util/HostUtil.java (original) +++ hadoop/common/branches/branch-2.4.1/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/util/HostUtil.java Fri Jun 20 18:34:07 2014 @@ -38,6 +38,21 @@ public class HostUtil { 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) { // Ugly! // Convert the trackerName to its host name