The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Hortonworks Sandbox Forum

Beeswax wont return data

  • #46295
    Tom Barrand
    Member

    Hi,

    I am using the sandbox and following the tutorial and whenever I run a simple query using Beeswax like the tutorial says it just errors (see below) Any ideas?

    [03/Jan/2014 09:11:38 +0000] access WARNING 10.0.2.2 hue – “GET /logs HTTP/1.0”
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_tables returned in 4ms: [‘nyse_stock’, ‘sample_07’, ‘sample_08’]
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_tables(args=(‘default’, ‘.*’), kwargs={})
    [03/Jan/2014 08:37:42 +0000] views DEBUG Getting database name from argument
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_all_databases returned in 5ms: [‘default’]
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_all_databases(args=(), kwargs={})
    [03/Jan/2014 08:37:42 +0000] access INFO 10.0.2.2 hue – “GET /hcatalog/databases/json HTTP/1.0”
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_all_databases returned in 3ms: [‘default’]
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_all_databases(args=(), kwargs={})
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_tables returned in 5ms: [‘nyse_stock’, ‘sample_07’, ‘sample_08’]
    [03/Jan/2014 08:37:42 +0000] thrift_util DEBUG Thrift call: <class ‘hive_metastore.ThriftHiveMetastore.Client’>.get_tables(args=(‘default’, ‘.*’), kwargs={})
    [03/Jan/2014 08:37:42 +0000] access INFO 10.0.2.2 hue – “GET /beeswax/ HTTP/1.0”
    [03/Jan/2014 08:37:07 +0000] access WARNING 10.0.2.2 hue – “GET /logs HTTP/1.0”
    [03/Jan/2014 08:37:04 +0000] middleware INFO Processing exception: Error occurred executing hive query: Unknown exception.: 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 554, in execute_query
    return execute_directly(request, query, query_server, design, on_success_url=on_success_url, download=download)
    File “/usr/lib/hue/apps/beeswax/src/beeswax/views.py”, line 1242, in execute_directly
    raise PopupException(_(‘Error occurred executing hive query: ‘ + error_message))
    PopupException: Error occurred executing hive query: Unknown exception.
    [03/Jan/2014 08:37:04 +0000] thrift_util DEBUG Thrift call <class ‘beeswaxd.BeeswaxService.Client’>.get_log returned in 0ms

  • Author
    Replies
  • #46296
    Dave
    Moderator

    Hi Tom,

    What query exactly are you running?

    Thanks

    Dave

    #46297
    Tom Barrand
    Member

    Hi Dave,

    Just the basic one like this

    Select * from nyse_stocks

    I can see that the table exists

    Thanks

    Tom

    #51551
    Aleksandar Sargic
    Participant

    Tom,

    Did you ever get a resolution to this? I am having the exact same problem?

The forum ‘Hortonworks Sandbox’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.