Hi,
You may need to add hbase-protocol-*.jar to  the HADOOP_CLASSPATH
Just following the commands below:
HADOOP_CLASSPATH=/opt/cloudera/parcels/CDH-5.0.0-1.cdh5.0.0.p0.47/lib/hbase/hbase-protocol.jar:/etc/hbase/conf
 hadoop jar ...

Thanks,
Sun 




CertusNet 

 
发件人: 乔凯
发送时间: 2014-12-19 15:40
收件人: user
主题: Mapreduce bulk csv error

hi,all:
  i use  phoenix 4.2.1 and hbase 0.98.8  when i bulk csv data  use mapreduce as 
commond “hadoop jar phoenix-4.2.1-client.jar 
org.apache.phoenix.mapreduce.CsvBulkLoadTool --table example --input 
data1.csv”,the error happen as blow  :
 "main" java.sql.SQLException: java.lang.IllegalAccessError: class 
com.google.protobuf.HBaseZeroCopyByteString cannot access its superclass 
com.google.protobuf.LiteralByteString
at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:938)
at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:1164)
what‘s wrong ? can somebody help me?


Reply via email to