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, 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
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  5. def addCurrentUserCredentials(creds: Credentials): Unit

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  6. def addSecretKeyToUserCredentials(key: String, secret: String): Unit

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  7. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getConfigurationFromJobContext(context: JobContext): Configuration

    Permalink
    Definition Classes
    SparkHadoopUtil
  15. def getCurrentUserCredentials(): Credentials

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  16. def getNameNodesToAccess(sparkConf: SparkConf): Set[Path]

    Permalink

    Get the list of namenodes the user may access.

  17. def getSecretKeyFromUserCredentials(key: String): Array[Byte]

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  18. def getTaskAttemptIDFromTaskAttemptContext(context: TaskAttemptContext): TaskAttemptID

    Permalink
    Definition Classes
    SparkHadoopUtil
  19. def getTimeFromNowToRenewal(sparkConf: SparkConf, fraction: Double, credentials: Credentials): Long

    Permalink
    Definition Classes
    SparkHadoopUtil
  20. def getTokenRenewer(conf: Configuration): String

    Permalink
  21. def globPath(pattern: Path): Seq[Path]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  27. def listFilesSorted(remoteFs: FileSystem, dir: Path, prefix: String, exclusionSuffix: String): Array[FileStatus]

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

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

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

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

    Permalink
    Definition Classes
    SparkHadoopUtil
  32. def log: Logger

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  47. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  49. def obtainTokenForHiveMetastore(conf: Configuration): Option[Token[DelegationTokenIdentifier]]

    Permalink

    Obtains token for the Hive metastore, using the current user as the principal.

    Obtains token for the Hive metastore, using the current user as the principal. Some exceptions are caught and downgraded to a log message.

    conf

    hadoop configuration; the Hive configuration will be based on this

    returns

    a token, or None if there's no need for a token (no metastore URI or principal in the config), or if a binding exception was caught and downgraded.

  50. def obtainTokensForNamenodes(paths: Set[Path], conf: Configuration, creds: Credentials, renewer: Option[String] = None): Unit

    Permalink

    Obtains tokens for the namenodes passed in and adds them to the credentials.

  51. def runAsSparkUser(func: () ⇒ Unit): Unit

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

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

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

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

    Permalink
    Definition Classes
    YarnSparkHadoopUtil → SparkHadoopUtil
  56. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def newConfiguration(): Configuration

    Permalink
    Definition Classes
    SparkHadoopUtil
    Annotations
    @deprecated
    Deprecated

    (Since version 1.2.0) use newConfiguration with SparkConf argument

Inherited from SparkHadoopUtil

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped