What error message are you getting?

Alan.

李运田 <mailto:cumt...@163.com>
February 26, 2015 at 18:58
I want to use hcatalog in eclipse to deal with tables in hive.
but I cant store table into hive::
pigServer.registerQuery("tmp = load 'pig' using org.apache.hcatalog.pig.HCatLoader();");
pigServer.registerQuery("tmp = foreach tmp generate id;");
pigServer.registerQuery("store tmp into 'hive' using org.apache.hcatalog.pig.HCatStorer();");
I can store into file::
pigServer.registerQuery("a = LOAD '/user/hadoop/pig.txt' ;");
pigServer.store("a", "/user/hadoop/pig1.txt");
pigServer.registerQuery("store a into '/user/hadoop/pig2.txt';");
perhaps ,the hcatalog jars are wrong?

Reply via email to