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

Unable to connect Sandbox to Tableau or ODBC drivers

  • #55727
    Jason
    Participant

    Hello all,

    Being new to Hadoop, I recently installed the Hortonworks Sandbox on my Windows 7 Premium 64bit machine. However, even after following the tutorials for Tableau, Excel and ODBC, I am unable to connect. Any help would be appreciated!

    I have tried to be as detailed with my computing environment as possible:

    SYSTEM:
    Virtual Box + Hortonworks Sandbox (latest)
    Able to connect with browser on 127.0.0.1:8000, nyse_stocks table created and registered with HCAT, Hive queries on nyse_stocks successful.
    Virtual OS: Red Hat 64bit
    Windows 7 Home Premium 64bit
    Firewall: OFF
    ODBC: Both, 32bit and 64bit installed
    RAM: 1800MB allocated to Virtualbox. I currently only have 4GB on my laptop and am currently awaiting for my 2nd 4GB stick to arrive. The system is a little sluggish but my RAM should arrive soon…

    NETWORK SETTINGS:
    1. Virtual Box Preference:
    NATNetwork CIDR: 10.0.2.0/24 (default settings, with NAT enabled); no port forwarding set
    Host Only:
    Adapter: 192.168.56.1 Mask: 255.255.255.0
    DHCP: 192.168.56.1 Mask: 255.255.255.0 Bounds 102.168.56.101-110
    2. Sandbox Settings:
    Adapter 1: NAT enabled
    Adapter 2: Host only adapter

    3. ~ifconfig results:
    Eth1: 192.168.56.101
    Lo: 127.0.0.1

    ISSUE:
    1.Testing the 64 bit ODBC connection from Administrative Tools:
    Host: 192.168.56.101
    Port: 10000 (also tried 8000, 8888)
    Database default, Hive Server 2, Username: hue (no password)
    RESULT:
    Driver Version: V1.4.5.1005 Running connectivity tests…
    Attempting connection Failed to establish connection
    SQLSTATE: HY000[Hortonworks][HiveODBC] (34) Error from Hive: connect() failed: errno = 10060.
    TESTS COMPLETED WITH ERROR.32 bit ODBC:

    2.Testing the 32 bit ODBC and attempting to connect with Tableau:

    ODBC Settings:
    Server Type: Hive Server 2
    Mechanism: User Name
    Username: sandbox

    Tableau Settings:
    Using Hortonworks Hive
    Server Name: tried 192.168.56.101:10000 and 127.0.0.1:8000
    Authentication: User Name (sandbox)
    RESULT:
    Unable to connect to the ODBC Data Source. Check that the necessary drivers are installed and that the connection properties are valid.
    [Hortonworks][HiveODBC] (34) Error from Hive: connect() failed: errno = 10060.
    Unable to connect to the server “192.168.56.101”. Check that the server is running and that you have access privileges to the requested database.
    Unable to connect to the server. Check that the server is running and that you have access privileges to the requested database.

  • Author
    Replies
  • #55734
    Jason
    Participant

    UPDATE:

    Not sure what happened but so far:

    1. 64bit Hortonworks Hive ODBC test connection in ODBC Data Source Administrator System DSN tests connects successfully with the following :
    Host: 127.0.0.1
    Port: 10000
    Hive Server 2
    Username: hue
    No Password

    2. Tableau initially connects to Sandbox with the following info:
    Hortonworks Hadoop Hive
    Server Name: 127.0.0.1 Port: 10000
    HiveServer2
    Authentication: User Name: sandbox

    However after connecting to the default schema and choosing a table, I get the following error:
    [Hortonworks][HiveODBC] (35) Error from Hive: error code: ‘40000’ error message: ‘Error while compiling statement: FAILED: HiveAccessControlException Permission denied. Principal [name=sandbox, type=USER] does not have following privileges on Object [type=TABLE_OR_VIEW, name=default.nyse_stocks] : [SELECT]’.

    #55761
    Jason
    Participant

    SOLVED:

    Execute this code in Beeswax/Hive:

    grant SELECT on table <table name> to user hue and
    grant SELECT on table <table name> to user sandbox

    #73216
    Ashish Mishra
    Participant

    Thanks Jason for sharing these queries and their resolutions.

    #79531
    Danish Chadda
    Participant

    Hi Jason and Ashish

    I am getting same problem while connecting ODBC.

    I am using HDP2.0 , window 10(64 bit) and ODBC driver(64 bit) .

    error while test ODBC :

    Driver Version: V1.3.19.0013

    Running connectivity tests…

    Attempting connection

    Failed to establish connection

    SQLSTATE: HY000[Hortonworks][HiveODBC] (34) Error from Hive: connect() failed: errno = 10060.

    TESTS COMPLETED WITH ERROR.

    ODBC settings :

    host : 10.0.2.15 (i.e eth0 ip)

    port :10000

    database : default

    hive server type : hive server 2

    Auth. mech. : user name

    user name : hue

    can u please tell me where i am wrong ?

    share with me the procedure of configuring it sir .

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.