You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by 李运田 <cu...@163.com> on 2015/01/15 03:59:25 UTC

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.

RE: add data into hive table in pig

Posted by "Zhang, Liyun" <li...@intel.com>.
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:cumtshu@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.

RE: add data into hive table in pig

Posted by "Zhang, Liyun" <li...@intel.com>.
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:cumtshu@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.