Home Forums Hue hCatalog page shows Timed Out fro Hue

Tagged: 

This topic contains 5 replies, has 4 voices, and was last updated by  Tulsi Jain 2 months ago.

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #59110

    Tulsi Jain
    Participant

    I got the same timed out error while opening http://127.0.0.1 :8000/hcatalog/

    It got resolved when i refreshed my browser couples of times(5 times at 2 minutes interval)

    Just try it. worked for me

    Collapse
    #57400

    Sagar Prasad
    Participant

    Same problem here. beeswax and hcatalog is giving timed out error.
    On the logs :
    [18/Jul/2014 04:46:21 +0000] access INFO 10.0.2.2 hue – “GET /beeswax/ HTTP/1.0″
    [18/Jul/2014 04:46:21 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_tables(args=(‘default’, ‘.*’), kwargs={})
    [18/Jul/2014 04:46:31 +0000] thrift_util WARNING Not retrying thrift call get_tables due to socket timeout
    [18/Jul/2014 04:46:31 +0000] thrift_util INFO Thrift saw a socket error: timed out
    [18/Jul/2014 04:46:32 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_all_databases(args=(), kwargs={})
    [18/Jul/2014 04:46:42 +0000] thrift_util WARNING Not retrying thrift call get_all_databases due to socket timeout
    [18/Jul/2014 04:46:42 +0000] thrift_util INFO Thrift saw a socket error: timed out
    [18/Jul/2014 04:46:42 +0000] middleware INFO Processing exception: timed out (code THRIFTSOCKET): None: Traceback (most recent call last):
    File “/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py”, line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
    File “/usr/lib/hue/apps/beeswax/src/beeswax/views.py”, line 70, in index
    return execute_query(request)
    File “/usr/lib/hue/apps/beeswax/src/beeswax/views.py”, line 516, in execute_query
    databases = _get_db_choices(request)
    File “/usr/lib/hue/apps/beeswax/src/beeswax/views.py”, line 1496, in _get_db_choices
    dbs = db.get_databases()
    File “/usr/lib/hue/apps/beeswax/src/beeswax/server/dbms.py”, line 92, in get_databases
    return self.client.get_databases()
    File “/usr/lib/hue/apps/beeswax/src/beeswax/server/beeswax_lib.py”, line 124, in get_databases
    return self.meta_client.get_all_databases()
    File “/usr/lib/hue/desktop/core/src/desktop/lib/thrift_util.py”, line 302, in wrapper
    raise StructuredException(‘THRIFTSOCKET’, str(e), data=None, error_code=502)
    StructuredException: timed out (code THRIFTSOCKET): None

    Any help !

    Collapse
    #52462

    Madhup Shrivastava
    Participant

    Hi Dave
    Sandbox is listening to 8000 port, I am able to load Hue web app.
    I have tried executing curl command for following URL from sandbox shell – curl http://localhost:8000/hcatalog
    This has given output as –

    [hue@sandbox ~]$ curl http://localhost:8000/hcatalog > out.txt
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0 0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0

    I can see webhcat is running –

    INFO | 28 Apr 2014 19:21:34,459 | org.eclipse.jetty.server.AbstractConnector | Started SelectChannelConnector@0.0.0.0:50111
    INFO | 28 Apr 2014 19:21:34,697 | org.apache.hive.hcatalog.templeton.Main | Templeton listening on port 50111

    Please advise.

    Collapse
    #52414

    Dave
    Moderator

    Hi Madhup,

    Can you check that the sandbox is listening on port 8000
    Also ensure that your local firewall allows the connection and that Virtual Box or VMWare player is forwarding the port to the VM.
    You can check this by running a curl command to the URL .

    Also ensure that webhcat is running and is listening (can check /var/log/webhcat)

    Thanks

    Dave

    Collapse
    #52306

    Madhup Shrivastava
    Participant

    Server logs –

    [25/Apr/2014 13:07:49 +0000] middleware INFO Processing exception: timed out (code THRIFTSOCKET): None: Traceback (most recent call last):
    File “/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py”, line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
    File “/usr/lib/hue/apps/hcatalog/src/hcatalog/views.py”, line 53, in index
    return show_tables(request, database=database)
    File “/usr/lib/hue/apps/hcatalog/src/hcatalog/views.py”, line 92, in show_tables
    databases = db.get_databases()
    File “/usr/lib/hue/apps/beeswax/src/beeswax/server/dbms.py”, line 92, in get_databases
    return self.client.get_databases()
    File “/usr/lib/hue/apps/beeswax/src/beeswax/server/beeswax_lib.py”, line 124, in get_databases
    return self.meta_client.get_all_databases()
    File “/usr/lib/hue/desktop/core/src/desktop/lib/thrift_util.py”, line 302, in wrapper
    raise StructuredException(‘THRIFTSOCKET’, str(e), data=None, error_code=502)
    StructuredException: timed out (code THRIFTSOCKET): None
    [25/Apr/2014 13:07:47 +0000] thrift_util INFO Thrift saw a socket error: timed out
    [25/Apr/2014 13:07:45 +0000] thrift_util WARNING Not retrying thrift call get_all_databases due to socket timeout
    [25/Apr/2014 13:06:05 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_all_databases(args=(), kwargs={})
    [25/Apr/2014 13:06:05 +0000] views DEBUG Getting database name from cookies
    [25/Apr/2014 13:06:05 +0000] access INFO 10.0.2.2 hue – “GET /hcatalog/ HTTP/1.0″

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