Description
This is the pig script:
PigServer pigServer = PigServerBuilder.create(this.client.getConf());
pigServer.registerQuery("A = LOAD '"input"' USING PigStorage() AS(key:chararray, value:chararray);");
pigServer.registerQuery("STORE A INTO '"this.getDb().getName() + "." + this.getTable().getName()"' USING org.apache.hcatalog.pig.HCatStorer();");
Error:
2012-03-09 03:04:12,105 WARN org.apache.hadoop.mapred.Child: Error running
child
java.io.IOException: Error in loading storage
handler.org.apache.hcatalog.hbase.HBaseHCatStorageHandler
at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:518)
at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:474)
at
org.apache.hcatalog.mapreduce.HCatBaseOutputFormat.getOutputFormat(HCatBaseOutputFormat.java:77)
at
org.apache.hcatalog.mapreduce.HCatOutputFormat.getOutputCommitter(HCatOutputFormat.java:250)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputCommitter.getCommitters(PigOutputCommitter.java:89)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputCommitter.<init>(PigOutputCommitter.java:67)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat.getOutputCommitter(PigOutputFormat.java:278)
at org.apache.hadoop.mapred.Task.initialize(Task.java:515)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:353)
at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1082)
at org.apache.hadoop.mapred.Child.main(Child.java:249)
Caused by: java.lang.ClassNotFoundException:
org.apache.hcatalog.hbase.HBaseHCatStorageHandler
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:512)
... 13 more