Add any user credentials to the job conf which are necessary for running on a secure Hadoop cluster.
Using reflection to get the Configuration from JobContext/TaskAttemptContext.
Using reflection to get the Configuration from JobContext/TaskAttemptContext. If we directly
call JobContext/TaskAttemptContext.getConfiguration
, it will generate different byte codes
for Hadoop 1.+ and Hadoop 2.+ because JobContext/TaskAttemptContext is class in Hadoop 1.+
while it's interface in Hadoop 2.+.
Return an appropriate (subclass) of Configuration.
Return an appropriate (subclass) of Configuration. Creating config can initializes some Hadoop subsystems.
Runs the given function with a Hadoop UserGroupInformation as a thread local variable (distributed to child threads), used for authenticating HDFS and YARN calls.
Runs the given function with a Hadoop UserGroupInformation as a thread local variable (distributed to child threads), used for authenticating HDFS and YARN calls.
IMPORTANT NOTE: If this function is going to be called repeated in the same process you need to look https://issues.apache.org/jira/browse/HDFS-3545 and possibly do a FileSystem.closeAllForUGI in order to avoid leaking Filesystems
:: DeveloperApi :: Contains util methods to interact with Hadoop from Spark.