Class/Object

org.apache.spark.deploy.yarn

YarnSparkHadoopUtil

Related Docs: object YarnSparkHadoopUtil | package yarn

Permalink

class YarnSparkHadoopUtil extends SparkHadoopUtil

Contains util methods to interact with Hadoop from spark.

Linear Supertypes
SparkHadoopUtil, internal.Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. YarnSparkHadoopUtil
  2. SparkHadoopUtil
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new YarnSparkHadoopUtil()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addCredentials(conf: JobConf): Unit

    Permalink

    Add any user credentials to the job conf which are necessary for running on a secure Hadoop cluster.

    Add any user credentials to the job conf which are necessary for running on a secure Hadoop cluster.

    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  5. def addCurrentUserCredentials(creds: Credentials): Unit

    Permalink
    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  6. def addSecretKeyToUserCredentials(key: String, secret: String): Unit

    Permalink
    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  7. def appendS3AndSparkHadoopConfigurations(conf: SparkConf, hadoopConf: Configuration): Unit

    Permalink

    Appends S3-specific, spark.hadoop.*, and spark.buffer.size configurations to a Hadoop configuration.

    Appends S3-specific, spark.hadoop.*, and spark.buffer.size configurations to a Hadoop configuration.

    Definition Classes
    SparkHadoopUtil
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val conf: Configuration

    Permalink
    Definition Classes
    SparkHadoopUtil
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getCurrentUserCredentials(): Credentials

    Permalink
    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  16. def getSecretKeyFromUserCredentials(key: String): Array[Byte]

    Permalink
    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  17. def globPath(pattern: Path): Seq[Path]

    Permalink
    Definition Classes
    SparkHadoopUtil
  18. def globPathIfNecessary(pattern: Path): Seq[Path]

    Permalink
    Definition Classes
    SparkHadoopUtil
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean = false): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def isGlobPath(pattern: Path): Boolean

    Permalink
    Definition Classes
    SparkHadoopUtil
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def isYarnMode(): Boolean

    Permalink
    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  26. def listFilesSorted(remoteFs: FileSystem, dir: Path, prefix: String, exclusionSuffix: String): Array[FileStatus]

    Permalink

    Lists all the files in a directory with the specified prefix, and does not end with the given suffix.

    Lists all the files in a directory with the specified prefix, and does not end with the given suffix. The returned {{FileStatus}} instances are sorted by the modification times of the respective files.

    Definition Classes
    SparkHadoopUtil
  27. def listLeafDirStatuses(fs: FileSystem, baseStatus: FileStatus): Seq[FileStatus]

    Permalink
    Definition Classes
    SparkHadoopUtil
  28. def listLeafDirStatuses(fs: FileSystem, basePath: Path): Seq[FileStatus]

    Permalink
    Definition Classes
    SparkHadoopUtil
  29. def listLeafStatuses(fs: FileSystem, baseStatus: FileStatus): Seq[FileStatus]

    Permalink

    Get FileStatus objects for all leaf children (files) under the given base path.

    Get FileStatus objects for all leaf children (files) under the given base path. If the given path points to a file, return a single-element collection containing FileStatus of that file.

    Definition Classes
    SparkHadoopUtil
  30. def listLeafStatuses(fs: FileSystem, basePath: Path): Seq[FileStatus]

    Permalink

    Get FileStatus objects for all leaf children (files) under the given base path.

    Get FileStatus objects for all leaf children (files) under the given base path. If the given path points to a file, return a single-element collection containing FileStatus of that file.

    Definition Classes
    SparkHadoopUtil
  31. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  42. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  43. def loginUserFromKeytab(principalName: String, keytabFilename: String): Unit

    Permalink
    Definition Classes
    SparkHadoopUtil
  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. def newConfiguration(conf: SparkConf): Configuration

    Permalink

    Return an appropriate (subclass) of Configuration.

    Return an appropriate (subclass) of Configuration. Creating config can initializes some Hadoop subsystems.

    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. def runAsSparkUser(func: () ⇒ Unit): Unit

    Permalink

    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

    Definition Classes
    SparkHadoopUtil
  49. def substituteHadoopVariables(text: String, hadoopConf: Configuration): String

    Permalink

    Substitute variables by looking them up in Hadoop configs.

    Substitute variables by looking them up in Hadoop configs. Only variables that match the ${hadoopconf- .. } pattern are substituted.

    Definition Classes
    SparkHadoopUtil
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  52. def transferCredentials(source: UserGroupInformation, dest: UserGroupInformation): Unit

    Permalink
    Definition Classes
    YarnSparkHadoopUtilSparkHadoopUtil
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SparkHadoopUtil

Inherited from internal.Logging

Inherited from AnyRef

Inherited from Any

Ungrouped