Closed Cheeka1979 closed 7 years ago
Did you configure the [hadoop] section of your hue.ini? http://gethue.com/how-to-configure-hue-in-your-hadoop-cluster/
Thanks romainr for your help. Yes. ` hdfs-site.xml ->
core-site.xml-> ->
httpfs-site.xml ->
[hadoop]
[[hdfs_clusters]]
[[[default]]]
# Enter the filesystem uri
fs_defaultfs=hdfs://remoteserver:8020
# NameNode logical name.
## logical_name=
# Use WebHdfs/HttpFs as the communication mechanism.
# Domain should be the NameNode or HttpFs host.
# Default port is 14000 for HttpFs.
webhdfs_url=http://remoteserver:50070/webhdfs/v1
# Change this if your HDFS cluster is Kerberos-secured
## security_enabled=false
# In secure mode (HTTPS), if SSL certificates from YARN Rest APIs
# have to be verified against certificate authority
## ssl_cert_ca_verify=True
# Directory of the Hadoop configuration
hadoop_conf_dir=/usr/local/hadoop/hadoop-2.7.1/etc/hadoop
`
When I issue curl -i http://localhost:8888 its working. ( localhost here is the 127.0.0.1). My problem is I need to connect it from a remote server. so I issued ./hue runserver remoteserver:8000 &
And do you have?
[desktop] http_host=0.0.0.0
Yes, The problem was syncdb hue. That is needed to up your hue, ( even after a system restart). then ./hue runserver remoteserver:8000 & started the hue. Thanks for your help.
Greetings,
I am trying to access hue remotely using ./hue runserver remoteaddress:8000 &.
I am having hadoop 2.7.1 and hue version 3.10.0.
When I open it in Mozilla it doesn't show the login screen, but shows the
KeyError at /accounts/login/
'default'
Request Method: GET Request URL: http://remoteaddress:8000/accounts/login/?next=/ Django Version: 1.6.10 Exception Type: KeyError Exception Value:
'default'
Exception Location: /usr/hue-3.10.0/desktop/libs/hadoop/src/hadoop/cluster.py in get_hdfs, line 86 Python Executable: /usr/hue-3.10.0/build/env/bin/python2.7 Python Version: 2.7.5 Python Path:
['/usr/hue-3.10.0/build/env/bin', '/usr/hue-3.10.0/apps/about/src', '/usr/hue-3.10.0/apps/beeswax/gen-py', '/usr/hue-3.10.0/apps/beeswax/src', '/usr/hue-3.10.0/apps/filebrowser/src', '/usr/hue-3.10.0/apps/hbase/gen-py', '/usr/hue-3.10.0/apps/hbase/src', '/usr/hue-3.10.0/apps/help/src', '/usr/hue-3.10.0/apps/impala/gen-py', '/usr/hue-3.10.0/apps/impala/src', '/usr/hue-3.10.0/apps/jobbrowser/src', '/usr/hue-3.10.0/apps/jobsub/src', '/usr/hue-3.10.0/apps/metastore/src', '/usr/hue-3.10.0/apps/oozie/src', '/usr/hue-3.10.0/apps/pig/src', '/usr/hue-3.10.0/apps/proxy/src', '/usr/hue-3.10.0/apps/rdbms/src', '/usr/hue-3.10.0/apps/search/src', '/usr/hue-3.10.0/apps/security/src', '/usr/hue-3.10.0/apps/spark/src', '/usr/hue-3.10.0/apps/sqoop/src', '/usr/hue-3.10.0/apps/useradmin/src', '/usr/hue-3.10.0/apps/zookeeper/src',
At the end It shows -> You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page