Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How can I compile my coprocessor with cloudera hbase dependency?

avatar
Visitor

I have compiled my coprocessor with raw hive 0.98, and it worked. I want to migrate it to cloudera platform, but I don't know how to do it.

 

I add my coprocessor(call it 'org.apache.hadoop.hbase.master.mycop') to hive configuration 'hbase.coprocessor.master.classes'(done with GUI), and then I need move coprocessor.jar to the '/opt/cloudera/parcels/CDH/jars/' and make a soft link in '/opt/cloudera/parcels/CDH/lib/hbase/lib/', am I right?

 

But I'm stuck in the "move coprocess.jar to the cloudera", I don't know how to compile my coprocessor with cloudera hbase dependency. I have read this link, and add dependency to the 'pom.xml', but there are lots of compile error about my code. I think there is some differences between cloudera and hbase, because I move origin coprocessor.jar to the cloudera directory, and it throw "org/apache/hadoop/hbase/Chore.class" not found exception.

 

So, anyway, I am really newbie to hbase and Java project, cloud you give some advices?

1 ACCEPTED SOLUTION

avatar
Visitor

This solution is work for me. I compile my coprocessor with correct cloudera hbase version 0.98.6-cdh5.3.8 and it works.

View solution in original post

2 REPLIES 2

avatar
Visitor

Updated: I have found HBase 0.98 is equivalent to 0.98.6-cdh5.3.8, so I can compile with this version and copy it to cloudera 5.3.8?

avatar
Visitor

This solution is work for me. I compile my coprocessor with correct cloudera hbase version 0.98.6-cdh5.3.8 and it works.