Hi,
I import data from files to HBase table via the ImportTsv command as below:
hbase org.apache.hadoop.hbase.mapreduce.ImportTsv
-Dimporttsv.columns=HBASE_ROW_KEY,cf:c1,cf:c2-Dimporttsv.skip.bad.lines=false
'-Dimporttsv.separator=,'
-Dimporttsv.bulk.output=hdfs://hbase-master:9000/tmp/bktableoutput bktable
hdfs://hbase-master:9000/tmp/importsv
and the MR job runs successfully. When I execute the completebulkload
command as below:
hbase org.apache.hadoop.hbase.tool.LoadIncrementalHFiles
hdfs://hbase-master:9000/tmp/bktableoutput bktable
and it throws the exception:
Error: Could not find or load main class
org.apache.hadoop.hbase.tool.LoadIncrementalHFiles
I try the other command:
HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath`
${HADOOP_HOME}/bin/hadoop jar ${HBASE_HOME}/lib/hbase-server-1.2.6.jar
completebulkload hdfs://hbase-master:9000/tmp/bktableoutput bktable
and it succeeds.
Does anyone have the idea?
Here is the information of HBase cluster :
* HBase version 1.2.6
* Hadoop version 2.7.5
* With 5 work nodes.