2015-04-07 63 views

回答

0

您还需要简单的json。

REGISTER json-simple-1.1.1.jar 
REGISTER elephant-bird-pig-4.10.jar 
REGISTER elephant-bird-hadoop-compat-4.10.jar 
REGISTER elephant-bird-core-4.10.jar 

在此之后,下面的命令将工作

MY_JSON = LOAD 'myfile.json' USING com.twitter.elephantbird.pig.load.JsonLoader('-nestedLoad'); 
0

我指着一些罐子。

注册'elephant-bird-pig-4.1.jar';

注册'elephant-bird-core-4.1.jar';

注册'elephant-bird-hadoop-compat-4.1.jar';