I am trying to use Java to connect HBase. There are only 1 node, which is my own machine. It seems that I cannot connect successfully.
Here is my Java code:
<
For Spark-HBase integration, the best way is to add HBase libraries to Spark Classpath. This can be done using the 'compute-classpath.sh' script in $SPARK_HOME/bin folder. Spark invokes 'compute-classpath.sh' and picks up the required hbase jars hence.
export CLASSPATH=$CLASSPATH:
eg: export CLASSPATH=$CLASSPATH:/opt/cloudera/parcels/CDH/lib/hbase/lib/*
After this, restart Spark.
There you go :)