Reply
Contributor
Posts: 29
Registered: ‎07-19-2016
Accepted Solution

Hue: Error in config validation by liboozie

Hi,

 

I see the following error in hue error.log: 

 

Aug 17, 4:19:43 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:43 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:43 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:43 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:43 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:43 PM	ERROR	views	
Error in config validation by liboozie: <html><head><title>Apache Tomcat/6.0.44 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.UnsupportedOperationException
	org.apache.oozie.util.MetricsInstrumentation.getVariables(MetricsInstrumentation.java:333)
	org.apache.oozie.servlet.BaseAdminServlet.instrToJson(BaseAdminServlet.java:339)
	org.apache.oozie.servlet.BaseAdminServlet.sendInstrumentationResponse(BaseAdminServlet.java:396)
	org.apache.oozie.servlet.BaseAdminServlet.doGet(BaseAdminServlet.java:127)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:289)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:622)
	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:574)
	org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
	org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.44 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.44</h3></body></html> (error 500)
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/views.py", line 472, in _get_config_errors
    for confvar, error in validator(request.user):
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/libs/liboozie/src/liboozie/conf.py", line 86, in config_validator
    intrumentation = api.get_instrumentation()
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/libs/liboozie/src/liboozie/oozie_api.py", line 304, in get_instrumentation
    resp = self._root.get('admin/instrumentation', params)
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 98, in get
    return self.invoke("GET", relpath, params, headers=headers, allow_redirects=True)
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 79, in invoke
    urlencode=self._urlencode)
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py", line 163, in execute
    raise self._exc_class(ex)
RestException: <html><head><title>Apache Tomcat/6.0.44 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.UnsupportedOperationException
	org.apache.oozie.util.MetricsInstrumentation.getVariables(MetricsInstrumentation.java:333)
	org.apache.oozie.servlet.BaseAdminServlet.instrToJson(BaseAdminServlet.java:339)
	org.apache.oozie.servlet.BaseAdminServlet.sendInstrumentationResponse(BaseAdminServlet.java:396)
	org.apache.oozie.servlet.BaseAdminServlet.doGet(BaseAdminServlet.java:127)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:289)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:622)
	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:574)
	org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
	org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.44 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.44</h3></body></html> (error 500)
Aug 17, 4:19:44 PM	ERROR	conf	
The application won't work without a running HiveServer2.
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/beeswax/src/beeswax/conf.py", line 215, in config_validator
    server = dbms.get(user)
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/beeswax/src/beeswax/server/dbms.py", line 57, in get
    from beeswax.server.hive_server2_lib import HiveServerClientCompatible
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 33, in <module>
    from TCLIService.ttypes import TOpenSessionReq, TGetTablesReq, TFetchResultsReq,\
ImportError: cannot import name TGetLogReq
Aug 17, 4:19:44 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:44 PM	ERROR	conf	
No available Impalad to send queries to.
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/impala/src/impala/conf.py", line 178, in config_validator
    server = dbms.get(user, query_server)
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/beeswax/src/beeswax/server/dbms.py", line 57, in get
    from beeswax.server.hive_server2_lib import HiveServerClientCompatible
  File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 33, in <module>
    from TCLIService.ttypes import TOpenSessionReq, TGetTablesReq, TFetchResultsReq,\
ImportError: cannot import name TGetLogReq
Aug 17, 4:19:44 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:44 PM	INFO	connectionpool	
Starting new HTTP connection (1): ip-172-28-2-131.eu-west-1.compute.internal
Aug 17, 4:19:44 PM	INFO	connectionpool	
Starting new HTTP connection (1): localhost
Aug 17, 4:20:14 PM	INFO	access	
172.28.2.131 admin - "GET /jobbrowser/ HTTP/1.1"
Aug 17, 4:20:45 PM	INFO	access	
172.28.2.131 admin - "GET /jobbrowser/ HTTP/1.1"
Aug 17, 4:21:16 PM	INFO	access	
172.28.2.131 admin - "GET /jobbrowser/ HTTP/1.1"

At the same in Hue's web interface I see:

Potential misconfiguration detected. Fix and restart Hue.

 

HiveThe application won't work without a running HiveServer2.
ImpalaNo available Impalad to send queries to.

 

Both Hive2Server and Impalad are running and I can access them by hive cli and impala-shell.

 

I have a single node test cluster running the latest CDH.

 

What can be wrong?

Cloudera Employee
Posts: 718
Registered: ‎07-30-2013

Re: Hue: Error in config validation by liboozie

'ImportError: cannot import name TGetLogReq'

Would you happen to have installed a 3rd party 'impala' package on the Hue
machine?

About Oozie, this should not happen, but you seem to be on C5.7.0 and C5.8
has been out for 2 weeks.
Highlighted
Contributor
Posts: 29
Registered: ‎07-19-2016

Re: Hue: Error in config validation by liboozie

[ Edited ]

I was using C5.7.0, thinking it was the latest. Upgrade to C5.7.2 fixes the problem. 

Announcements