输入数据:
14.323.74.653 - - [26 / Oct / 2011:21:07:00 -0500]“GET / demo HTTP / 1.1”200 0“ - ”“Jakarta Commons-HttpClient / 3.0-rc4”
我的代码:
REGISTER /home/training/pig/JAR/piggybank.jar;
A = LOAD 'weblogsmall.txt' USING TextLoader() as (line:chararray);
B = FOREACH A GENERATE FLATTEN(REGEX_EXTRACT_ALL($0,'^(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)));
STORE B INTO 'weblogsmallout';
请问你能解释一下我错在哪里吗?
谢谢,