Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Connection failed on host:10000 hiveserver2

Highlighted

Connection failed on host:10000 hiveserver2

New Contributor
Connection failed on host:10000 (Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_thrift_port.py", line 211, in execute
    ldap_password=ldap_password)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/hive_check.py", line 79, in check_thrift_port_sasl
    timeout=check_command_timeout)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of '! beeline -u 'jdbc:hive2://:10000/;transportMode=binary;principal=hive/_HOST@.COM'  -e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'' returned 1. Error: Could not open client transport with JDBC Uri: jdbc:hive2://:10000/;transportMode=binary;principal=hive/_HOST@SDT..COM: java.net.ConnectException: Connection refused (state=08S01,code=0)
Error: Could not open client transport with JDBC Uri: jdbc:hive2://xlabdschivel.com:10000/;transportMode=binary;principal=hive/_HOST@.COM: java.net.ConnectException: Connection refused (state=08S01,code=0) 

)

3 REPLIES 3

Re: Connection failed on host:10000 hiveserver2

Rising Star

@Adarsh Pathipati Is HiveSerevr2 process up ? If yes, can you upload the hive-site.xml (/etc/hive/con/conf.server)

Re: Connection failed on host:10000 hiveserver2

New Contributor

@Swapan Shridhar

did you try beeline like this , beeline -u "jdbc:hive2://xlabdschivel.com:10000/;principal=hive/_HOST@AETNSDT.AETT.AETNAT.COM" . Please check the authorization part as well ( Ranger policies )

Re: Connection failed on host:10000 hiveserver2

New Contributor

Connection failed on host blrubdev-rrao.arubanetworks.com:10000 (Traceback (most recent call last):

Hi, i'm facing same issue after installing single cluster on ubuntu vm. Can someone help me fix the issue.