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.

Hue - Bad Request (400)

Hue - Bad Request (400)

Explorer

I am not able to access HUE after I installed, services able to start but when access localhost:8888,

I got a Bad Request (400) and nothing else displayed.

 

https://github.com/keedio/kafka-hue

 

Not sure where went wrong and how to check.

 

Any advise?

 

Thanks.

5 REPLIES 5

Re: Hue - Bad Request (400)

Rising Star

Hi Whyy,

 

Could you please check the status of port 8888 in the Hue installed server ?

 

netstat -tunlp | grep 8888 

 

you will get some non zero output if that service is running on that server and in that port .

 

Thanks,

Sathish

Thanks,
Sathish (Satz)

Re: Hue - Bad Request (400)

Explorer

I got this ..

 

 2015-06-18 08_51_33-Reply to Message - Cloudera Community.png

Highlighted

Re: Hue - Bad Request (400)

Rising Star
Whyy I am not able to view this Image.

Thanks,
Sathish
Thanks,
Sathish (Satz)

Re: Hue - Bad Request (400)

Explorer

I'm getting a different error now..

 

Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1198, in communicate
    req.respond()
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 568, in respond
    self._respond()
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 580, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/wsgi.py", line 206, in __call__
    response = self.get_response(request)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 194, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 236, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/views.py", line 304, in serve_500_error
    return render("500.mako", request, {'traceback': traceback.extract_tb(exc_info[2])})
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 225, in render
    **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 146, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 125, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
    result = template.render(**data_dict)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 786, in _render
    **_kwargs_for_callable(callable_, data))
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 818, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 844, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpsmyaZ0/desktop/500.mako.py", line 39, in render_body
    __M_writer(unicode( commonheader(_('Error'), "", user) ))
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/views.py", line 375, in commonheader
    'is_demo': desktop.conf.DEMO_ENABLED.get()
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
    result = template.render(**data_dict)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 786, in _render
    **_kwargs_for_callable(callable_, data))
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 818, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 844, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpsmyaZ0/desktop/common_header.mako.py", line 694, in render_body
    __M_writer(escape(unicode( static(other.icon_path) )))
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 148, in static
    return staticfiles_storage.url(path)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/contrib/staticfiles/storage.py", line 139, in url
    hashed_name = self.hashed_name(clean_name).replace('\\', '/')
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/contrib/staticfiles/storage.py", line 94, in hashed_name
    if not self.exists(clean_name):
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/files/storage.py", line 244, in exists
    return os.path.exists(self.path(name))
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/contrib/staticfiles/storage.py", line 49, in path
    return super(StaticFilesStorage, self).path(name)
  File "/opt/cloudera/parcels/CDH-5.4.2-1.cdh5.4.2.p0.2/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/files/storage.py", line 260, in path
    raise SuspiciousFileOperation("Attempted access to '%s' denied." % name)
SuspiciousFileOperation: Attempted access to '/kafka/static/art/icon_kafka_24.png' denied.

Re: Hue - Bad Request (400)

For original error, put in hue.ini or Hue safety Valve in CM;

 

[desktop]
allowed_hosts=*
Don't have an account?
Coming from Hortonworks? Activate your account here