Thanks Ankit,

I am getting the desired result. What i did was I group by year but did not
use any aggregate function so that the output is a bag(tuples).
Now when I try to apply replace function for replacing the curly braces and
brackets so that it will look 2014,2013 but it gives me error can't cast
tuple to chararray.
Cannot cast tuple with schema

On Tue, Apr 1, 2014 at 5:47 PM, Ankit Bhatnagar <[EMAIL PROTECTED]>wrote:
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB