FAQ
Hi folks,

I just installed Cloudera Manager Free (4.1.2) to three of my virtual
boxes. From the admin portal, HBase, HDFS and zookeeper works fine. Then I
opened PIG from /usr/lib/pig/bin. It first complains JAVA_HOME missing.
After recover, it works fine to load files in my HDFS. But failed when I
try to load HBASE table thru HBaseStorage.

I searched this error, there are several solutions online. But none of them
resolved my problem. I firstly registered several jar at the beginning of
my script, like below. But no luck. It complains
"java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter"

*register /usr/lib/hbase/hbase.jar*
*register /usr/lib/zookeeper/zookeeper.jar*
*register /usr/lib/hbase/lib/protobuf-java-2.4.0a.jar*
*register /usr/lib/hbase/lib/guava-11.0.2.jar*

*file = load 'hbase://test' using
org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:a');*
*dump file*

Then, a post said PIG_CLASSPATH should be added to the script pig, so I
added the following line to it, but still no luck.
PIG_CLASSPATH=/usr/lib/hbase/hbase-****.jar:/usr/lib/zookeeper/zookeeper.jar:/usr/libprotobuf-***.jar

Can anybody kindly shed some light on this issue?

Search Discussions

  • Balto Jenna at Jan 10, 2013 at 2:31 am
    Thanks, Casey. Yes, I am using /usr/bin/pig which is installed by Cloudera
    manager free I believe.

    在 2013年1月9日星期三UTC-5下午2时35分57秒,Casey Ching写道:
    Hello,

    cdh-users is a better list for this, adding.

    Have you tried using just /usr/bin/pig? That should automatically set java
    home and such.

    Casey
    On Tue, Jan 8, 2013 at 11:18 PM, <balto...@gmail.com <javascript:>> wrote:

    Hi folks,

    I just installed Cloudera Manager Free (4.1.2) to three of my virtual
    boxes. From the admin portal, HBase, HDFS and zookeeper works fine. Then I
    opened PIG from /usr/lib/pig/bin. It first complains JAVA_HOME missing.
    After recover, it works fine to load files in my HDFS. But failed when I
    try to load HBASE table thru HBaseStorage.

    I searched this error, there are several solutions online. But none of
    them resolved my problem. I firstly registered several jar at the beginning
    of my script, like below. But no luck. It complains
    "java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter"

    *register /usr/lib/hbase/hbase.jar*
    *register /usr/lib/zookeeper/zookeeper.jar*
    *register /usr/lib/hbase/lib/protobuf-java-2.4.0a.jar*
    *register /usr/lib/hbase/lib/guava-11.0.2.jar*

    *file = load 'hbase://test' using
    org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:a');*
    *dump file*

    Then, a post said PIG_CLASSPATH should be added to the script pig, so I
    added the following line to it, but still no luck.

    PIG_CLASSPATH=/usr/lib/hbase/hbase-****.jar:/usr/lib/zookeeper/zookeeper.jar:/usr/libprotobuf-***.jar

    Can anybody kindly shed some light on this issue?

  • Kontaktme01 at Jan 18, 2013 at 4:02 pm
    Hey,

    I think I have exactly the same problem as you:

    http://stackoverflow.com/questions/14402206/cdh4-hbase-using-pig-error-2998-java-lang-noclassdeffounderror-org-apache-hadoo

    If you find a solution, feel free to post it, I'll try to do the same.

    Cheers!

    Am Donnerstag, 10. Januar 2013 03:31:29 UTC+1 schrieb balto...@gmail.com:
    Thanks, Casey. Yes, I am using /usr/bin/pig which is installed by Cloudera
    manager free I believe.

    在 2013年1月9日星期三UTC-5下午2时35分57秒,Casey Ching写道:
    Hello,

    cdh-users is a better list for this, adding.

    Have you tried using just /usr/bin/pig? That should automatically set
    java home and such.

    Casey
    On Tue, Jan 8, 2013 at 11:18 PM, wrote:

    Hi folks,

    I just installed Cloudera Manager Free (4.1.2) to three of my virtual
    boxes. From the admin portal, HBase, HDFS and zookeeper works fine. Then I
    opened PIG from /usr/lib/pig/bin. It first complains JAVA_HOME missing.
    After recover, it works fine to load files in my HDFS. But failed when I
    try to load HBASE table thru HBaseStorage.

    I searched this error, there are several solutions online. But none of
    them resolved my problem. I firstly registered several jar at the beginning
    of my script, like below. But no luck. It complains
    "java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter"

    *register /usr/lib/hbase/hbase.jar*
    *register /usr/lib/zookeeper/zookeeper.jar*
    *register /usr/lib/hbase/lib/protobuf-java-2.4.0a.jar*
    *register /usr/lib/hbase/lib/guava-11.0.2.jar*

    *file = load 'hbase://test' using
    org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:a');*
    *dump file*

    Then, a post said PIG_CLASSPATH should be added to the script pig, so I
    added the following line to it, but still no luck.

    PIG_CLASSPATH=/usr/lib/hbase/hbase-****.jar:/usr/lib/zookeeper/zookeeper.jar:/usr/libprotobuf-***.jar

    Can anybody kindly shed some light on this issue?

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedJan 9, '13 at 7:18a
activeJan 18, '13 at 4:02p
posts3
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Balto Jenna: 2 posts Kontaktme01: 1 post

People

Translate

site design / logo © 2022 Grokbase