org.apache.hadoop.mapreduce.util
Class HostUtil

java.lang.Object
  extended by org.apache.hadoop.mapreduce.util.HostUtil

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class HostUtil
extends Object


Constructor Summary
HostUtil()
           
 
Method Summary
static String convertTrackerNameToHostName(String trackerName)
           
static String getTaskLogUrl(String taskTrackerHostName, String httpPort, String taskAttemptID)
          Deprecated. Use getTaskLogUrl(String, String, String, String) to construct the taskLogUrl.
static String getTaskLogUrl(String scheme, String taskTrackerHostName, String httpPort, String taskAttemptID)
          Construct the taskLogUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostUtil

public HostUtil()
Method Detail

getTaskLogUrl

public static String getTaskLogUrl(String scheme,
                                   String taskTrackerHostName,
                                   String httpPort,
                                   String taskAttemptID)
Construct the taskLogUrl

Parameters:
taskTrackerHostName -
httpPort -
taskAttemptID -
Returns:
the taskLogUrl

getTaskLogUrl

@Deprecated
public static String getTaskLogUrl(String taskTrackerHostName,
                                              String httpPort,
                                              String taskAttemptID)
Deprecated. Use getTaskLogUrl(String, String, String, String) to construct the taskLogUrl.

Always throws 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.


convertTrackerNameToHostName

public static String convertTrackerNameToHostName(String trackerName)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.