When I run simple query as below it works
rhive.query("select * from tablename where name ='xxx'");
but
When I try aggregated query as below it doesn't work.
rhive.query("select count(*) from tablename where name ='xxx'");
I'm getting the following error:
Error: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
Anyone has any inputs on this?
Thank you