使用 Hadoop 的 PIG-Latin 从搜索引擎日志文件中查找唯一搜索字符串的出现次数。(单击此处查看示例日志文件)请帮帮我。提前致谢。
猪脚本
excitelog = load '/user/hadoop/input/excite-small.log' using PigStorage() AS
(encryptcode:chararray, numericid:int, searchstring:chararray);
GroupBySearchString = GROUP excitelog by searchstring;
searchStrFrq = foreach GroupBySearchString Generate group as searchstring,count(searchstring);
遇到错误
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve count using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]