0

This is my command on beeline !connect jdbc:hive2://localhost:10000

I got this error

Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000: null (state=08S01,code=0)

How to solve it?

samydoyle
  • 27
  • 1
  • 7

2 Answers2

0

Check if hive server is running in http mode or not.

sandeep rawat
  • 4,797
  • 1
  • 18
  • 36
0

You need to set the authentication like below commands to go to beeline.

It depends on hive.server2.authentication property value in hive-site.xml

Embedded Mode:

    !connect jdbc:hive2://

SASL Authentication:

if hive.server2.authentication=SASL then start beeline like below

        !connect jdbc:hive2://<host>:<port>/<db>

NOSASL Authentication: hive.server2.authentication=NOSASL

        !connect jdbc:hive2://<host>:<port>/<db>;auth=noSasl

HTTP Mode:hive.server2.authentication=HTTP

!connect jdbc:hive2://<host>:<port>/<db>;hive.server2.transport.mode=http;

Just go to the property and start beeline depends on above value.It will Started without errors

Hope this really helpful for you

Mister X
  • 3,406
  • 3
  • 31
  • 72