com.cloudera.sqoop.util
Class TaskId

java.lang.Object
  extended by com.cloudera.sqoop.util.TaskId

public final class TaskId
extends java.lang.Object

Utility class; returns task attempt Id of the current job regardless of Hadoop version being used.


Method Summary
static java.lang.String get(org.apache.hadoop.conf.Configuration conf, java.lang.String defaultVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static java.lang.String get(org.apache.hadoop.conf.Configuration conf,
                                   java.lang.String defaultVal)
Parameters:
conf - the Configuration to check for the current task attempt id.
defaultVal - the value to return if a task attempt id is not set.
Returns:
the current task attempt id, or the default value if one isn't set.


Copyright © 2010 Cloudera, Inc.