grunt> res = load '/user/hive/warehouse/0hk8ubfx/'
>> as (guid:chararray, rate:double);
grunt> ret = filter res by rate>0.0;
grunt> ret = limit res 500;
>> as (guid:chararray, rate:double);
grunt> ret = filter res by rate>0.0;
grunt> ret = limit res 500;
grunt> dump ret;
grunt> cnt = foreach(group ret all) generate COUNT(ret);
grunt> dump cnt;
本文介绍如何利用Grunt处理Hive中的数据,包括加载数据、过滤、限制及统计数据等关键步骤。
8339

被折叠的 条评论
为什么被折叠?



