hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bajeesh rahman <bajeeshrah...@gmail.com>
Subject Error in pig execution when loading data from HBase
Date Tue, 05 Jun 2012 09:48:44 GMT
Hi,



I executed Pig java program loading data from HBase in local mode in
Eclipse IDE correctly . But when executing through command mode with the
following commands its showing error.



Input :-

pigServer.registerQuery("L2 = LOAD 'hbase://HBaseTable1' " +

    "USING org.apache.pig.backend.hadoop.hbase.HBaseStorage(" +

    " ' Family1:fname  Family1:lname ' )" +

    "AS (fname :chararray,lname :chararray);");



Commands given are(Executing in Linux):-



$ javac -cp pig.jar MyPigProgram.java

$ java -cp pig.jar:.  MyPigProgram





Error obtained :-



12/06/05 14:56:30 INFO mapReduceLayer.JobControlCompiler:
mapred.job.reduce.markreset.buffer.percent is not set, set to default 0.3

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/zookeeper/ZooKeeper

        at
org.apache.pig.backend.hadoop.hbase.HBaseStorage.setLocation(HBaseStorage.java:322)

        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:369)

        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:256)

       at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:147)

        at
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:382)

        at
org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1209)

        at org.apache.pig.PigServer.storeEx(PigServer.java:885)

        at org.apache.pig.PigServer.store(PigServer.java:827)

        at org.apache.pig.PigServer.store(PigServer.java:795)

        at ClusterFinder.runIdQuery(ClusterFinder.java:97)

        at ClusterFinder.main(ClusterFinder.java:9)

Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.ZooKeeper

        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        ... 11 more





Any Idea?????




regards
bajeesh rahman

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message