linux - Apache Spark upgrade from 1.5.2 to 1.6.0 using homebrew leading to permission denied error during execution -


i upgraded spark 1.5.2 1.6.0 using homebrew , reset spark_home environment variable /usr/local/cellar/apache-spark/1.6.0. while executing pyspark, gives permission denied error.

if go earlier 1.5.2 installation directory , execute pyspark there, runs fine. running pyspark 1.6.0 installation directory fails permission denied error.

/usr/local/cellar/apache-spark/1.6.0/bin/load-spark-env.sh: line 2: /usr/local/cellar/apache-spark/1.6.0/libexec/bin/load-spark-env.sh: permission denied

/usr/local/cellar/apache-spark/1.6.0/bin/load-spark-env.sh: line 2: exec: /usr/local/cellar/apache-spark/1.6.0/libexec/bin/load-spark-env.sh: cannot execute: undefined error: 0

what causing this?

i ran same issue , easiest fix set $spark_home /usr/local/cellar/apache-spark/<your_spark_version>/libexec/ instead.

you can build source directly , can find instructions here.

basically do

git clone https://github.com/apache/spark/` cd spark git checkout origin/branch-x.y  build/mvn -pyarn -phadoop-2.4 -dhadoop.version=2.4.0 -dskiptests clean package 

you'll need set $spark_home top level directory of spark source code.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -