Hi:
   In 
http://zh.hortonworks.com/community/forums/topic/problems-using-hcatatalog-with-pig-java-lang-nosuchmethoderror-org-apache-hadoo/,
 some one has the similar problem as you. Maybe you can find your solution here.




Best regards
Zhang,Liyun



-----Original Message-----
From: 李运田 [mailto:cumt...@163.com] 
Sent: Thursday, January 15, 2015 10:59 AM
To: dev@pig.apache.org; user
Subject: add data into hive table in pig

pigServer.registerQuery("a = load '" + inputTable+ "' using 
org.apache.hcatalog.pig.HCatLoader();");
pigServer.registerQuery("store a into 'mmmm' using 
org.apache.hcatalog.pig.HCatStorer();");
 but,I always get error like this:
Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.hadoop.hive.ql.plan.TableDesc.<init>(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/util/Properties;)V
 at 
org.apache.hcatalog.common.HCatUtil.configureOutputStorageHandler(HCatUtil.java:481)
 at 
org.apache.hcatalog.mapreduce.HCatOutputFormat.setOutput(HCatOutputFormat.java:181)
 at 
org.apache.hcatalog.mapreduce.HCatOutputFormat.setOutput(HCatOutputFormat.java:65)
 at org.apache.hcatalog.pig.HCatStorer.setStoreLocation(HCatStorer.java:125)
please give me some advices,thanks.

Reply via email to