diff options
author | Patrick Wendell <pwendell@gmail.com> | 2014-01-22 14:10:07 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-01-22 14:10:07 -0800 |
commit | 576c4a4c502ccca5fcd6b3552dd93cc2f3c50666 (patch) | |
tree | 9742caf74183596b8ecd44c0ecc841374036064a /docs/running-on-yarn.md | |
parent | 5bcfd798117e8617e604c1dd3b5c9b67e83100bb (diff) | |
parent | adf42611f16daec091af10f2c9b39bd154dc67b3 (diff) | |
download | spark-576c4a4c502ccca5fcd6b3552dd93cc2f3c50666.tar.gz spark-576c4a4c502ccca5fcd6b3552dd93cc2f3c50666.tar.bz2 spark-576c4a4c502ccca5fcd6b3552dd93cc2f3c50666.zip |
Merge pull request #478 from sryza/sandy-spark-1033
SPARK-1033. Ask for cores in Yarn container requests
Tested on a pseudo-distributed cluster against the Fair Scheduler and observed a worker taking more than a single core.
Diffstat (limited to 'docs/running-on-yarn.md')
-rw-r--r-- | docs/running-on-yarn.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/running-on-yarn.md b/docs/running-on-yarn.md index 3bd62646ba..5dadd54492 100644 --- a/docs/running-on-yarn.md +++ b/docs/running-on-yarn.md @@ -133,7 +133,7 @@ See [Building Spark with Maven](building-with-maven.html) for instructions on ho # Important Notes -- We do not requesting container resources based on the number of cores. Thus the numbers of cores given via command line arguments cannot be guaranteed. +- Before Hadoop 2.2, YARN does not support cores in container resource requests. Thus, when running against an earlier version, the numbers of cores given via command line arguments cannot be passed to YARN. Whether core requests are honored in scheduling decisions depends on which scheduler is in use and how it is configured. - The local directories used for spark will be the local directories configured for YARN (Hadoop Yarn config yarn.nodemanager.local-dirs). If the user specifies spark.local.dir, it will be ignored. - The --files and --archives options support specifying file names with the # similar to Hadoop. For example you can specify: --files localtest.txt#appSees.txt and this will upload the file you have locally named localtest.txt into HDFS but this will be linked to by the name appSees.txt and your application should use the name as appSees.txt to reference it when running on YARN. - The --addJars option allows the SparkContext.addJar function to work if you are using it with local files. It does not need to be used if you are using it with HDFS, HTTP, HTTPS, or FTP files. |