Created
October 19, 2017 16:50
-
-
Save bepcyc/fff0711f8ece6fbc9645d869e74fb6bb to your computer and use it in GitHub Desktop.
Make Spark 2.x work with Hive mapped HBase tables on Cloudera CDH 5.12
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
HBASE_JARS=$(ls -1 /opt/cloudera/parcels/CDH/jars/*hbase*.jar|grep -v test|tr '\n' ',')/opt/cloudera/parcels/CDH/lib/hbase/lib/htrace-core.jar | |
# the part with --files is crucial. Otherwise all queries freeze with no error. | |
spark2-shell --jars $HBASE_JARS --files /etc/hbase/conf/hbase-site.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment