编辑spark-env.sh
export LD_LIBRARY_PATH=/usr/lib64:/usr/hdp/2.2.6.0-2800/hadoop/lib/native/Linux-amd64-64
export HADOOP_CONF_DIR=/etc/hadoop/conf
export YARN_CONF_DIR=/etc/hadoop/conf
export SPARK_CLASSPATH=${SPARK_CLASSPATH}:/usr/hdp/current/share/lzo/0.6.0/lib/hadoop-lzo-0.6.0.jar
本文转自 yntmdr 51CTO博客,原文链接:http://blog.51cto.com/yntmdr/1960891,如需转载请自行联系原作者