Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: Problems with pig

$
0
0

Hi Jonas,

Can you try using the below:

a = LOAD 'default.nyse_stocks' USING org.apache.hive.hcatalog.pig.HCatLoader()
b = FILTER a BY stock_symbol == 'IBM';
c = group b ALL;
d = FOREACH c GENERATE AVG(b.stock_volume);
dump d;

Thanks

Dave


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>