Skip to content

Instantly share code, notes, and snippets.

@elliottcordo
Created December 15, 2014 22:23
Show Gist options
  • Save elliottcordo/2e37be92890c2eefa0c2 to your computer and use it in GitHub Desktop.
Save elliottcordo/2e37be92890c2eefa0c2 to your computer and use it in GitHub Desktop.
Spark hiveContext Fix
cp /home/hadoop/hive/conf/hive-default.xml /home/hadoop/spark/conf/hive-site.xml
sed -i 's/SPARK_CLASSPATH=\"/&\/home\/hadoop\/hive\/lib\/bonecp-0.8.0.RELEASE.jar:\/home\/hadoop\/hive\/lib\/mysql-connector-java-5.1.30.jar:/' /home/hadoop/spark/conf/spark-env.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment