1

I was using my UDF in my pig script this morning without any problem. But now when I try I receive this error message:

Info:Error: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.util.Bytes

I guess it means I miss a hbase jar in my classpath!! But I change nothing!

How can I fix that?

An example of how I can add the hbase jar will be great!!

3 Answers 3

1

I solve it by registering hbase in my pig script.

REGISTER path/to/hbase/jar

In my case

REGISTER /usr/lib/hbase/hbase.jar;

Sign up to request clarification or add additional context in comments.

Comments

0

Add hbase jar into class path. If you are running it form command line then use java -cp to add jar in class path.

1 Comment

Please can you give me an example?
0

You have to add HBase jar file into your class path. You can also seee Hbase installation stuff at this site :

http://www.improgrammer.net/tag/hbase/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.