object YarnSparkHadoopUtil
- Alphabetic
- By Inheritance
- YarnSparkHadoopUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val AM_MEMORY_OVERHEAD_FACTOR: Double
- val ANY_HOST: String
- val RM_REQUEST_PRIORITY: Priority
- def addPathToEnvironment(env: HashMap[String, String], key: String, value: String): Unit
Add a path variable to the given environment map.
Add a path variable to the given environment map. If the map already contains this key, append the value to the existing value instead.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def escapeForShell(arg: String): String
Escapes a string for inclusion in a command line executed by Yarn.
Escapes a string for inclusion in a command line executed by Yarn. Yarn executes commands using either
(Unix-based)
bash -c "command arg1 arg2"and that means plain quoting doesn't really work. The argument is enclosed in single quotes and some key characters are escaped.(Windows-based) part of a .cmd file in which case windows escaping for each argument must be applied. Windows is quite lenient, however it is usually Java that causes trouble, needing to distinguish between arguments starting with '-' and class names. If arguments are surrounded by ' java takes the following string as is, hence an argument is mistakenly taken as a class name which happens to start with a '-'. The way to avoid this, is to surround nothing with a ', but instead with a ".
- arg
A single argument.
- returns
Argument quoted for execution via Yarn's generated shell script.
- def executorOffHeapMemorySizeAsMb(sparkConf: SparkConf, execRequest: ExecutorResourceRequest): Long
Get offHeap memory size from ExecutorResourceRequest return 0 if MEMORY_OFFHEAP_ENABLED is false.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getApplicationAclsForYarn(securityMgr: SecurityManager): Map[ApplicationAccessType, String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getContainerId: ContainerId
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def replaceEnvVars(unresolvedString: String, env: Map[String, String], isWindows: Boolean = Utils.isWindows): String
Replace environment variables in a string according to the same rules as org.apache.hadoop.yarn.api.ApplicationConstants.Environment:
$VAR_NAMEfor Unix,%VAR_NAME%for Windows, and{{VAR_NAME}}for all OS.Replace environment variables in a string according to the same rules as org.apache.hadoop.yarn.api.ApplicationConstants.Environment:
$VAR_NAMEfor Unix,%VAR_NAME%for Windows, and{{VAR_NAME}}for all OS. The${VAR_NAME}syntax is also supported for Unix. This support escapes for$and\(on Unix) and%andcharacters (on Windows), e.g.%FOO^%$FOO,, and%%FOO%%will be resolved to$FOO,%FOO%, and%FOO%, respectively, instead of being treated as variable names.- unresolvedString
The unresolved string which may contain variable references.
- env
The System environment
- isWindows
True iff running in a Windows environment
- returns
The input string with variables replaced with their values from
env
- def setEnvFromInputString(env: HashMap[String, String], inputString: String): Unit
Set zero or more environment variables specified by the given input string.
Set zero or more environment variables specified by the given input string. The input string is expected to take the form "KEY1=VAL1,KEY2=VAL2,KEY3=VAL3".
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()