Skip to content

Instantly share code, notes, and snippets.

@bepcyc
Created June 6, 2017 16:58
Show Gist options
  • Save bepcyc/8521e965ec7bbeac55ea9b6f9ef593e6 to your computer and use it in GitHub Desktop.
Save bepcyc/8521e965ec7bbeac55ea9b6f9ef593e6 to your computer and use it in GitHub Desktop.
Workaround for Spark 2.1.0 to work with HBase tables mapped to Hive
# this works on Cloudera CDH, but you can easily run it on any path
HBASE_JARS=$(ls -1 /opt/cloudera/parcels/CDH/jars/*hbase*.jar|grep -v test|tr '\n' ',')
spark2-shell ${HBASE_JARS}/opt/cloudera/parcels/CDH/jars/htrace-core-3.2.0-incubating.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment