Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Where in Cloudera Manager do I find navigation to Distributed Cache, edit properties, to add Hbase

avatar
Explorer

I found this solution but I can't find Cloudera Manager navigation to Distributed Cache, edit properties, to add HBase jar file .   See solution I'm trying to implement below:

 

Hue uses the Oozie pig action to execute pig scripts.

 

It seems like you're missing the hbase jar. Could you try adding them to the distributed cache via the resources section in 'Edit properties'? You should be able to add files and archives.

 

Hi abe thanks for the suggestion - doesn't seem to fix it though. I tried adding hbase.jar (from /usr/lib/hbase on the hue server) as a file and as an archive but both resulted in the same "Unhandled internal error. org/apache/hadoop/hbase/mapreduce/TableInputFormat" error as before.

-

 

The jar is not automatically added to the classpath, it is just copied next to the running job.

I would recommend to add the hbase*.jars to the Oozie sharelib '/user/oozie/share/lib/pig' which is used for submitting the jobs: create a 'oozie' user in Hue (or use 'hdfs', as it is the HDFS superuser) and then upload the files there and make sure they are readable by everyone 'http://hue_server:8888/filebrowser/#/user/oozie/share/lib/pig'.

One another advantage of doing this is that it will be automatically included in all the pig scripts.

Romain

 

-

Hi Romain, that works for me, thanks a lot 🙂

2 ACCEPTED SOLUTIONS

avatar
Super Guru

avatar
Explorer
2 REPLIES 2

avatar
Super Guru
About using HBase with Pig or Hive in Hue:
http://gethue.com/hadoop-tutorial-use-pig-and-hive-with-hbase/

Romain

avatar
Explorer

Thanks Romain!!