Can anyone help solve the issue "u'spark' is not a registered namespace"?

16 views
Skip to first unread message

Shaoquan Zhang

unread,
Jan 23, 2016, 3:36:55 AM1/23/16
to Hue-Users
Hi Hue-team,

I am trying to use Spark in Hue (CDH version is 5.5.1, hue version is cdh5-3.9.0_5.5.1). But the error "u'spark' is not a registered namespace" comes out. Other services (Impala, Hive, etc) are okay.
I didn't blacklist spark in hue.ini. The following is the detailed error info. 

[23/Jan/2016 00:21:39 -0800] api          ERROR    failed to get absolute url
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.5.1-1.cdh5.5.1.p0.11/lib/hue/desktop/core/src/desktop/api.py", line 174, in massaged_documents_for_json
    url = document.content_object.get_absolute_url()
  File "/opt/cloudera/parcels/CDH-5.5.1-1.cdh5.5.1.p0.11/lib/hue/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/functional.py", line 15, in _curried
    return _curried_func(*(args + moreargs), **dict(kwargs, **morekwargs))
  File "/opt/cloudera/parcels/CDH-5.5.1-1.cdh5.5.1.p0.11/lib/hue/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/base.py", line 1009, in get_absolute_url
    return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.model_name), func)(self, *args, **kwargs)
  File "/opt/cloudera/parcels/CDH-5.5.1-1.cdh5.5.1.p0.11/lib/hue/desktop/core/src/desktop/models.py", line 798, in get_absolute_url
    return reverse('spark:notebook') + '?notebook=' + str(self.id)
  File "/opt/cloudera/parcels/CDH-5.5.1-1.cdh5.5.1.p0.11/lib/hue/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 532, in reverse
    key)
NoReverseMatch: u'spark' is not a registered namespace 

Anyone can help solve this issue? Thanks very much!!

Shaoquan

Romain Rigaux

unread,
Jan 23, 2016, 1:59:23 PM1/23/16
to Shaoquan Zhang, Hue-Users
Did you unblacklist it with this in the Hue safety valve?

[desktop]
app_blacklist=

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.

Reply all
Reply to author
Forward
0 new messages