I'm trying to launch bin/spark-shell
and bin/pyspark
from laptop, connecting to Yarn cluster in yarn-client
mode, and I get the same error
WARN ScriptBasedMapping: Exception running
/etc/hadoop/conf.cloudera.yarn1/topology.py 10.0.240.71
java.io.IOException: Cannot run program "/etc/hadoop/conf.cloudera.yarn1/topology.py"
(in directory "/Users/eugenezhulenev/projects/cloudera/spark"): error=2,
No such file or directory
Spark is trying to run /etc/hadoop/conf.cloudera.yarn1/topology.py
on my laptop, but not on worker node in Yarn.
This problem appeared after update from Spark 1.2.0 to 1.3.0 (CDH 5.4.2)
The following steps is a temporarily work-around for this issue on CDH 5.4.4
cd ~
mkdir -p test-spark/
cd test-spark/
Then copy all files from /etc/hadoop/conf.clouder.yarn1 from one worker node to the above (local) directory. And then run spark-shell
from ~/test-spark/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With