RE: add data into hive table in pig

2015-01-19 Thread Zhang, Liyun
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: d...@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 '' 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.


add data into hive table in pig

2015-01-14 Thread 李运田
pigServer.registerQuery(a = load ' + inputTable+ ' using 
org.apache.hcatalog.pig.HCatLoader(););
pigServer.registerQuery(store a into '' 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.