Home Forums Hue Hue Installation

This topic contains 13 replies, has 2 voices, and was last updated by  Dave 2 months, 2 weeks ago.

  • Creator
    Topic
  • #47217

    Chetan Angu
    Participant

    Hi ,

    I have tried Installing Hue 2.0.3 , the Installation packages installed smoothly . I was able to login in hue http://hostname :8888/dump_config and access few links but after few minutes I was unable to open any links .the links terminated with http errors

    ” Firefox can’t establish a connection to the server at ”

    I dont see any process on the os level ps -ef|grep hue

    Any help in resolving this issue is highly appreciable .

    Thanks
    Chetan

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #47895

    Dave
    Moderator

    Hi Chetan,

    Please upload the logs from /var/log/hue to a location which I will be able to look at and paste the link here.

    Thanks

    Dave

    Collapse
    #47828

    Chetan Angu
    Participant

    Yes Dave you are right it worked for 2 mins .

    Collapse
    #47823

    Dave
    Moderator

    Hi Chetan,

    How do you mean it works for 2 minutes and gets terminated?

    Thanks

    Dave

    Collapse
    #47686

    Chetan Angu
    Participant

    Hi Dave ,

    I have made the changes using ambari and now I am not finding any issues related to configuration in Hue . I am able to connect to Beeswax , oozie ,file browser etc from hue but Still hue just worked for two or three minutes and gets terminated .

    Thanks
    Chetan

    Collapse
    #47639

    Dave
    Moderator

    Hi Chetan,

    You need to add the configuration changes via ambari and not the files directly.
    Please follow this documentation and make all the changes via Ambari:

    http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.9.0/bk_installing_manually_book/content/rpm-chap-hue-2.html

    Thanks

    Dave

    Collapse
    #47604

    Chetan Angu
    Participant

    Hi Dave ,

    I have updated the below url before also and now as per your suggestion

    webhdfs_url=FQDN.of.your.NameNode:50070/webhdfs/v1

    but it did not work for me until and unless I have manually updated core-site.xml . I have manually updated the core-site.xml file with below

    <property>
    <name>hadoop.proxyuser.hue.hosts</name>
    <value>*</value>
    </property>
    and

    <property>
    <name>hadoop.proxyuser.hue.groups</name>
    <value>*</value>
    </property>

    After updating the above configuration file I dont see the error related to webhdfs_url

    Error : hadoop.hdfs_clusters.default.webhdfs_url Current value: http://ip-10-45-153-156.ec2.internal:50070/webhdfs/v1
    Failed to access filesystem root

    But as soon as I restart the cluster the configuration files gets overwritten and we start facing the same issue again.

    Please let us know what is the reason behind that ?

    Please note not down we are using ambari to Admin the hadoop .

    Thanks
    Chetan

    Collapse
    #47540

    Dave
    Moderator

    Hi Chetan,

    These values are dependent on how your cluster is configured.
    webhdfs_url=FQDN.of.your.NameNode:50070/webhdfs/v1

    This is also dependent if you are running HA.

    You can leave all the beeswax settings under [[beeswax]] commented out.

    Your templeton_url is incorrect. This should point to http://WebHCat.Machine.FQDN:50111/templeton/v1/

    The other 2 issues with shells you can fix by running : yum install pig hbase on the HUE machine.

    Thanks

    Dave

    Collapse
    #47281

    Chetan Angu
    Participant

    Hi ,

    What should be the value of parameter in hue.ini file

    webhdfs_url = value of this parameter ?

    beeswax_server_host = Which ip I need to mention public ip or internal ip on AWS ?

    beeswax_meta_server_host = Which ip I need to mention public ip or internal ip on AWS /

    Please note the we have installed hadoop on AWS /centoS6.x and all services are up and running .

    Below are the mis configuration checks detected

    Potential misconfiguration detected. Fix and restart Hue.

    hadoop.hdfs_clusters.default.webhdfs_url Current value: None
    Failed to access filesystem root

    hcatalog.templeton_url Current value: hcatalog.templeton_url
    unknown url type : hcatalog.templeton_url/status?user.name=hue&doAs=hue
    shell.shelltypes Command ‘/usr/bin/pig -l /dev/null’ for entry ‘pig’ in Shell app configuration cannot be found on the path.
    shell.shelltypes Command ‘/usr/bin/hbase shell’ for entry ‘hbase’ in Shell app configuration cannot be found on the path.

    Thanks
    Chetan

    Collapse
    #47272

    Dave
    Moderator

    Hi Chetan,

    Your hue.ini was truncated – can you place them on a dropbox or similar?
    Also the file you have attached doesn’t give me any information to go on.
    As your server is not listening on port 8000 (default unless you changed it) then hue is not running.

    Thanks

    Dave

    Collapse
    #47261

    Chetan Angu
    Participant

    [22/Jan/2014 06:40:26 +0000] urls DEBUG Static pattern: (‘^(?P<path>favicon.ico)$’, ‘django.views.static.serve’, {‘document_root’: ‘/usr/lib/hue/desktop/core/src/desktop/../../../core/static/art’})
    [22/Jan/2014 06:40:27 +0000] backend INFO Augmenting users with class: <class ‘desktop.auth.backend.DefaultUserAugmentor’>
    [22/Jan/2014 06:40:27 +0000] access INFO 114.69.247.14 admin – “GET /about/ HTTP/1.0″
    [22/Jan/2014 06:40:27 +0000] webhdfs DEBUG Initializing Hadoop WebHdfs: hadoop.hdfs_clusters.default.webhdfs_url (security: False, superuser: None)
    [22/Jan/2014 06:40:32 +0000] access DEBUG 114.69.247.14 admin – “GET /static/ext/font/fontawesome-webfont.woff HTTP/1.0″
    [22/Jan/2014 06:40:35 +0000] access INFO 114.69.247.14 admin – “GET /debug/check_config HTTP/1.0″
    [22/Jan/2014 06:40:36 +0000] access INFO 114.69.247.14 admin – “GET /debug/check_config HTTP/1.0″
    [22/Jan/2014 06:40:36 +0000] webhdfs DEBUG Initializing Hadoop WebHdfs: hadoop.hdfs_clusters.default.webhdfs_url (security: False, superuser: None)
    [22/Jan/2014 06:40:36 +0000] http_client DEBUG GET hadoop.hdfs_clusters.default.webhdfs_url/?op=GETFILESTATUS&user.name=hue&doas=hue
    [22/Jan/2014 06:40:36 +0000] webhdfs ERROR Failed to determine superuser of WebHdfs at hadoop.hdfs_clusters.default.webhdfs_url: unknown url type: hadoop.hdfs_clusters.default.webhdfs_url/?op=GETFILESTATUS&user.name=hue&doas=hue
    Traceback (most recent call last):
    File “/usr/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py”, line 111, in superuser
    sb = self.stats(‘/’)
    File “/usr/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py”, line 215, in stats
    res = self._stats(path)
    File “/usr/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py”, line 204, in _stats
    json = self._root.get(path, params)
    File “/usr/lib/hue/desktop/core/src/desktop/lib/rest/resource.py”, line 91, in get
    return self.invoke(“GET”, relpath, params, headers=headers)
    File “/usr/lib/hue/desktop/core/src/desktop/lib/rest/resource.py”, line 58, in invoke
    headers=headers)
    File “/usr/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py”, line 174, in execute
    return self._opener.open(request)
    File “/usr/lib64/python2.6/urllib2.py”, line 383, in open
    protocol = req.get_type()
    File “/usr/lib64/python2.6/urllib2.py”, line 244, in get_type
    raise ValueError, “unknown url type: %s” % self.__original
    ValueError: unknown url type: hadoop.hdfs_clusters.default.webhdfs_url/?op=GETFILESTATUS&user.name=hue&doas=hue
    [22/Jan/2014 06:40:36 +0000] http_client DEBUG GET hadoop.hdfs_clusters.default.webhdfs_url/?op=GETFILESTATUS&user.name=hue&doas=hdfs
    [22/Jan/2014 06:40:36 +0000] webhdfs INFO WebHdfs at hadoop.hdfs_clusters.default.webhdfs_url — Validation error: unknown url type: hadoop.hdfs_clusters.default.webhdfs_url/?op=GETFILESTATUS&user.name=hue&doas=hdfs
    [22/Jan/2014 06:40:36 +0000] http_client DEBUG GET h

    Collapse
    #47260

    Chetan Angu
    Participant

    netstat -an | grep 8000 and netstat -an | grep 8888 is not showing anything .

    Collapse
    #47258

    Chetan Angu
    Participant

    hue.ini
    B#####################################
    # DEVELOPMENT EDITION
    #####################################

    # Hue configuration file
    # ===================================
    #
    # For complete documentation about the contents of this file, run
    # $ <hue_root>/build/env/bin/hue config_help
    #
    # All .ini files under the current directory are treated equally. Their
    # contents are merged to form the Hue configuration, which can
    # can be viewed on the Hue at
    # http://<hue_host&gt;:<port>/dump_config

    ###########################################################################
    # General configuration for core Desktop features (authentication, etc)
    ###########################################################################

    [desktop]

    kredentials_dir=”/tmp”

    send_dbug_messages=1

    # To show database transactions, set database_logging to 1
    database_logging=0

    # Set this to a random string, the longer the better.
    # This is used for secure hashing in the session store.
    secret_key=secretkeysecretkeysecretkeysecretkey

    # Webserver listens on this address and port
    http_host=ec2-54-226-82-117.compute-1.amazonaws.com
    http_port=8888

    # Time zone name
    time_zone=America/Los_Angeles

    # Turn off debug
    django_debug_mode=1

    # Turn off backtrace for server error
    http_500_debug_mode=1

    # Server email for internal error messages
    ## django_server_email=’hue@localhost.localdomain’

    # Email backend
    ## django_email_backend=django.core.mail.backends.smtp.EmailBackend

    # Set to true to use CherryPy as the webserver, set to false
    # to use Spawning as the webserver. Defaults to Spawning if
    # key is not specified.
    ## use_cherrypy_server=false

    # Webserver runs as this user
    server_user=hue
    server_group=hadoop

    # If set to false, runcpserver will not actually start the web server.
    # Used if Apache is being used as a WSGI container.
    ## enable_server=yes

    # Number of threads used by the CherryPy web server
    ## cherrypy_server_threads=10

    # Filename of SSL Certificate
    ## ssl_certificate=

    # Filename of SSL RSA Private Key
    ## ssl_private_key=

    # Default encoding for site data
    ## default_site_encoding=utf-8

    # Options for X_FRAME_OPTIONS header. Default is SAMEORIGIN
    x_frame_options=’ALLOWALL’

    # Administrators
    # —————-
    [[django_admins]]
    ## [[[admin1]]]
    ## name=john
    ## email=john@doe.com

    # UI customizations
    # ——————-
    [[custom]]

    # Top banner HTML code
    ## banner_top_html=

    # Configuration options for user authentication into the web application
    # ————————————————————————
    [[auth]]

    # Authentication backend. Common settings are:
    # – django.contrib.auth.backends.ModelBackend (entirely Django backend)
    # – desktop.auth.backend.AllowAllBackend (allows everyone)
    # – desktop.auth.backend.AllowFirstUserDjangoBackend
    # (Default. Relies on Django and user manager, after the first login)

    Collapse
    #47219

    Dave
    Moderator

    Hi Chetan,

    If there is no hue process running then you should check in /var/log/hue to check runcpserver.log for any errors.
    If you run netstat -an | grep 8000 then you should see if it is listening.

    Can you paste your hue.ini here?
    As this is for hue – I am moving it to the hue forum.

    Thanks

    Dave

    Collapse
Viewing 13 replies - 1 through 13 (of 13 total)