I'm trying to get a count of all users in an alias. Each row contains a map of users.
Like this: ([user_name/454543#Paul Kison]) ([user_name/43433#Josiel's iPhone,user_name/34343434#Jose's iPAD,user_name/3434645655#Josiel's])
When using size() on the entire alias I get this error: ERROR 1066: Unable to open iterator for alias user_count. Backend error : Scalar has more than one row in the output.
users = LOAD 'hbase://group'
USING org.apache.pig.backend.hadoop.hbase.HBaseStorage ('n:user_display_name*', '-limit 10')
as(display_name);
user_count = FOREACH users GENERATE SIZE(users.display_name);
The idea was to sum the output of the count of each map to get the total count.