Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Query is not running through Hue UI on CDH 5.11.0

Query is not running through Hue UI on CDH 5.11.0

New Contributor

I am unable to execute the query (count(*) type of query) in HUE UI most of the times are getting the exceptions like

" FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask"

The same query was running fine while executing through hive CLI mode.

 

Hue Logs: (error and runcpserver.log)

decorators ERROR Error running <function get_logs at 0x4fe76e0>
Traceback (most recent call last):
File "/var/opt/teradata/cloudera/parcels/CDH-5.11.0-1.cdh5.11.0.p2245.2440/lib/hue/desktop/libs/notebook/src/notebook/decorators.py", line 82, in decorator
return func(*args, **kwargs)
File "/var/opt/teradata/cloudera/parcels/CDH-5.11.0-1.cdh5.11.0.p2245.2440/lib/hue/desktop/libs/notebook/src/notebook/api.py", line 295, in get_logs
logs = db.get_log(notebook, snippet, startFrom=startFrom, size=size)
File "/var/opt/teradata/cloudera/parcels/CDH-5.11.0-1.cdh5.11.0.p2245.2440/lib/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 92, in decorator
raise QueryError(message)
QueryError

 

Kindly suggest a solution if anyone faced the same scenario.