-
-
Save andrewdmcleod/e32e8982c0b8f8083442 to your computer and use it in GitHub Desktop.
Spark local lzo config one-paster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - | |
echo "export SPARK_LIBRARY_PATH=$SPARK_LIBRARY_PATH:/usr/lib/hadoop/lib/native/" >> /usr/lib/spark/bin/spark-class | |
echo "export CLASSPATH=$CLASSPATH:/usr/lib/hadoop/share/hadoop/common/lib/hadoop-lzo-0.4.20-SNAPSHOT.jar" >> /usr/lib/spark/bin/compute-classpath.sh | |
echo "export SPARK_LIBRARY_PATH=$SPARK_LIBRARY_PATH:/usr/lib/hadoop/lib/native/" >> /usr/lib/spark/bin/compute-classpath.sh | |
echo "export SPARK_CLASSPATH=$SPARK_CLASSPATH:/usr/lib/hadoop/share/hadoop/common/lib/" >> /usr/lib/spark/bin/compute-classpath.sh | |
echo "echo \"$CLASSPATH\"" >> /usr/lib/spark/bin/compute-classpath.sh | |
echo "SPARK_LIBRARY_PATH=$SPARK_LIBRARY_PATH:/usr/lib/hadoop/lib/native/" >> /etc/spark/conf/spark-env.sh | |
echo "SPARK_CLASSPATH=$SPARK_CLASSPATH:/usr/lib/hadoop/share/hadoop/common/lib/" >> /etc/spark/conf/spark-env.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment