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.