<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161441#M123820</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;P&gt; i restarted the ambari server and agent on the hive machine and the outcome is the same.&lt;/P&gt;&lt;P&gt;this is the log from ambari-agent:
&lt;/P&gt;&lt;PRE&gt;INFO 2016-05-23 13:42:52,555 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:42:54,316 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:02,556 Heartbeat.py:78 - Building Heartbeat: {responseId = 29, timestamp = 1464000182555, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:02,577 Controller.py:260 - Heartbeat response received (id = 30)
INFO 2016-05-23 13:43:02,577 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:12,578 Heartbeat.py:78 - Building Heartbeat: {responseId = 30, timestamp = 1464000192578, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:12,779 Controller.py:260 - Heartbeat response received (id = 31)
INFO 2016-05-23 13:43:12,780 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:22,781 Heartbeat.py:78 - Building Heartbeat: {responseId = 31, timestamp = 1464000202781, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:22,825 Controller.py:260 - Heartbeat response received (id = 32)
INFO 2016-05-23 13:43:22,826 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
WARNING 2016-05-23 13:43:29,367 base_alert.py:417 - [Alert][yarn_resourcemanager_webui] HA nameservice value is present but there are no aliases for {{yarn-site/yarn.resourcemanager.ha.rm-ids}}
INFO 2016-05-23 13:43:29,393 logger.py:67 - Host contains mounts: ['/', '/proc', '/sys', '/dev/pts', '/dev/shm', '/boot', '/home', '/proc/sys/fs/binfmt_misc'].
INFO 2016-05-23 13:43:29,397 logger.py:67 - Mount point for directory /hadoop/hdfs/data is /
INFO 2016-05-23 13:43:29,408 logger.py:67 - Execute['export HIVE_CONF_DIR='/usr/hdp/current/hive-metastore/conf/conf.server' ; hive --hiveconf hive.metastore.uris=thrift://HOSTNAME:9083                 --hiveconf hive.metastore.client.connect.retry.delay=1                 --hiveconf hive.metastore.failure.retries=1                 --hiveconf hive.metastore.connect.retries=1                 --hiveconf hive.metastore.client.socket.timeout=14                 --hiveconf hive.execution.engine=mr -e 'show databases;''] {'path': ['/bin/', '/usr/bin/', '/usr/sbin/', '/usr/hdp/current/hive-metastore/bin'], 'user': 'ambari-qa', 'timeout': 30}
INFO 2016-05-23 13:43:29,425 logger.py:67 - Execute['! beeline -u 'jdbc:hive2://HOSTNAME:10000/;transportMode=binary' -e '' 2&amp;gt;&amp;amp;1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 'ambari-qa', 'timeout': 30}
INFO 2016-05-23 13:43:32,826 Heartbeat.py:78 - Building Heartbeat: {responseId = 32, timestamp = 1464000212826, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:32,831 Controller.py:260 - Heartbeat response received (id = 33)
INFO 2016-05-23 13:43:32,831 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:42,831 Heartbeat.py:78 - Building Heartbeat: {responseId = 33, timestamp = 1464000222831, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:42,875 Controller.py:260 - Heartbeat response received (id = 34)
INFO 2016-05-23 13:43:42,875 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:52,876 Heartbeat.py:78 - Building Heartbeat: {responseId = 34, timestamp = 1464000232875, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:52,944 Controller.py:260 - Heartbeat response received (id = 35)
&lt;/PRE&gt;&lt;P&gt;HDP version 2.3.2.0-2950
ambari version 2.1.2&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 17:44:48 GMT</pubDate>
    <dc:creator>neomerdien</dc:creator>
    <dc:date>2016-05-23T17:44:48Z</dc:date>
    <item>
      <title>can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161435#M123814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when i try to start hiveserver2 using ambari i get the following error:&lt;/P&gt;&lt;P&gt;Connection failed on host HOSTNAME:10000 
(Execution of '! beeline -u 'jdbc:hive2://HOSTNAME:10000/;transportMode=binary' -e '' 2&amp;gt;&amp;amp;1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''
returned 1.&lt;/P&gt;&lt;P&gt; Error: Could not open client transport with JDBC Uri: jdbc:hive2://HOSTNAME:10000/;
transportMode=binary: java.net.ConnectException: Connection refused (state=08S01,code=0) &lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://HOSTNAME:10000/;
transportMode=binary: java.net.ConnectException: Connection refused (state=08S01,code=0))&lt;/P&gt;&lt;P&gt;i cant connect locally using: 
beeline -u 'jdbc:hive2://&lt;/P&gt;&lt;P&gt;even though the service is down.&lt;/P&gt;&lt;P&gt;hive metastore and WebHCat server are running.&lt;/P&gt;&lt;P&gt;I understand that the reason i cant connect is because hiveserver2 is down, but interestingly enough hive-server2.log (/var/log/hive) remains blank when i start the service so I cant understand what it fails to start in the first place.&lt;/P&gt;&lt;P&gt;HDP version 2.3.2.0-2950 &lt;/P&gt;&lt;P&gt;Ambari version 2.1.2&lt;/P&gt;&lt;P&gt;any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 21:09:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161435#M123814</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-22T21:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161436#M123815</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10642/neomerdien.html" nodeid="10642"&gt;@Andrey Nikitin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enable hive debug and check if you are able to see logs.&lt;/P&gt;&lt;P&gt;Also once hive is up try with below commands -&lt;/P&gt;&lt;P&gt;# beeline&lt;/P&gt;&lt;P&gt;&amp;gt;!connect jdbc:hive2://HOSTNAME:10000/default&lt;/P&gt;&lt;P&gt;Else try -&lt;/P&gt;&lt;P&gt;&amp;gt;!connect jdbc:hive2://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;db&amp;gt;;transportMode=http;httpPath=&amp;lt;http_endpoint&amp;gt;&lt;/P&gt;&lt;P&gt;where:-&lt;/P&gt;&lt;P&gt;&amp;lt;http_endpoint&amp;gt; is the corresponding HTTP endpoint configured in hive-site.xml. Default value is cliservice.&lt;/P&gt;&lt;P&gt;Default port for HTTP transport mode is 10001.&lt;/P&gt;&lt;P&gt;If you are having kerberized cluster then user - &lt;/P&gt;&lt;P&gt;&amp;gt;!connect jdbc:hive2://&amp;lt;host&amp;gt;:10000/;principal=&amp;lt;Server_Principal_of_HiveServer2&amp;gt; &lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 21:17:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161436#M123815</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-22T21:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161437#M123816</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;how do i enable Hive debug?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 21:34:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161437#M123816</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-22T21:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161438#M123817</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10642/neomerdien.html" nodeid="10642"&gt;@Andrey Nikitin&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;In addition to what &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; said, can you please run below command on hiveserver2 host to see DEBUG output  on console? it should give you a hint&lt;/P&gt;&lt;P&gt;Please run below command as hive user:&lt;/P&gt;&lt;PRE&gt;/usr/bin/hive --service hiveserver2 --hiveconf hive.root.logger=DEBUG,console &lt;/PRE&gt;</description>
      <pubDate>Sun, 22 May 2016 22:06:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161438#M123817</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-22T22:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161439#M123818</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; , &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;/P&gt;&lt;P&gt;some updates:&lt;/P&gt;&lt;P&gt;I've started hiveserver2 like you mentioned:
/usr/bin/hive --service hiveserver2 --hiveconf hive.root.logger=DEBUG,console

and it started without any issues and there was no apparent errors in the log, only these two warnings but i dont think its relevant:
WARNING: Use "yarn jar" to launch YARN applications.
16/05/23 10:41:17 WARN conf.HiveConf: HiveConf of name hive.heapsize does not exist&lt;/P&gt;&lt;P&gt;after the service was started via the above command, I tried to "start" the service in ambari and it connected succesfully, also via the CLI with the following command:
beeline -u 'jdbc:hive2://HOSTNAME:10000/;transportMode=binary'&lt;/P&gt;&lt;P&gt;when I tried to stop the service from ambari, it showed me that the services was stopped but when I checked the server it was still running&lt;/P&gt;&lt;P&gt;all of the above leads me to the conclusion that there is some problem between ambari and hiveserver2, its like its unable to start/stop the hiveserver2 service, and that is probably the reason why the log files are not update&lt;/P&gt;&lt;P&gt;please advise on what could an issue between ambari and running the services? i dont have problems with other services running from ambari on the same server.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:47:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161439#M123818</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-23T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161440#M123819</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10642/neomerdien.html" nodeid="10642"&gt;@Andrey Nikitin&lt;/A&gt;&lt;P&gt;Just give a try of restarting ambari server and agent(on which hiveserver2 runs)&lt;/P&gt;&lt;P&gt;Also pls let us know the version of ambari and hdp you are using.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 17:04:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161440#M123819</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-23T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161441#M123820</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;P&gt; i restarted the ambari server and agent on the hive machine and the outcome is the same.&lt;/P&gt;&lt;P&gt;this is the log from ambari-agent:
&lt;/P&gt;&lt;PRE&gt;INFO 2016-05-23 13:42:52,555 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:42:54,316 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:02,556 Heartbeat.py:78 - Building Heartbeat: {responseId = 29, timestamp = 1464000182555, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:02,577 Controller.py:260 - Heartbeat response received (id = 30)
INFO 2016-05-23 13:43:02,577 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:12,578 Heartbeat.py:78 - Building Heartbeat: {responseId = 30, timestamp = 1464000192578, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:12,779 Controller.py:260 - Heartbeat response received (id = 31)
INFO 2016-05-23 13:43:12,780 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:22,781 Heartbeat.py:78 - Building Heartbeat: {responseId = 31, timestamp = 1464000202781, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:22,825 Controller.py:260 - Heartbeat response received (id = 32)
INFO 2016-05-23 13:43:22,826 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
WARNING 2016-05-23 13:43:29,367 base_alert.py:417 - [Alert][yarn_resourcemanager_webui] HA nameservice value is present but there are no aliases for {{yarn-site/yarn.resourcemanager.ha.rm-ids}}
INFO 2016-05-23 13:43:29,393 logger.py:67 - Host contains mounts: ['/', '/proc', '/sys', '/dev/pts', '/dev/shm', '/boot', '/home', '/proc/sys/fs/binfmt_misc'].
INFO 2016-05-23 13:43:29,397 logger.py:67 - Mount point for directory /hadoop/hdfs/data is /
INFO 2016-05-23 13:43:29,408 logger.py:67 - Execute['export HIVE_CONF_DIR='/usr/hdp/current/hive-metastore/conf/conf.server' ; hive --hiveconf hive.metastore.uris=thrift://HOSTNAME:9083                 --hiveconf hive.metastore.client.connect.retry.delay=1                 --hiveconf hive.metastore.failure.retries=1                 --hiveconf hive.metastore.connect.retries=1                 --hiveconf hive.metastore.client.socket.timeout=14                 --hiveconf hive.execution.engine=mr -e 'show databases;''] {'path': ['/bin/', '/usr/bin/', '/usr/sbin/', '/usr/hdp/current/hive-metastore/bin'], 'user': 'ambari-qa', 'timeout': 30}
INFO 2016-05-23 13:43:29,425 logger.py:67 - Execute['! beeline -u 'jdbc:hive2://HOSTNAME:10000/;transportMode=binary' -e '' 2&amp;gt;&amp;amp;1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 'ambari-qa', 'timeout': 30}
INFO 2016-05-23 13:43:32,826 Heartbeat.py:78 - Building Heartbeat: {responseId = 32, timestamp = 1464000212826, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:32,831 Controller.py:260 - Heartbeat response received (id = 33)
INFO 2016-05-23 13:43:32,831 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:42,831 Heartbeat.py:78 - Building Heartbeat: {responseId = 33, timestamp = 1464000222831, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:42,875 Controller.py:260 - Heartbeat response received (id = 34)
INFO 2016-05-23 13:43:42,875 RecoveryManager.py:217 - HIVE_SERVER needs recovery.
INFO 2016-05-23 13:43:52,876 Heartbeat.py:78 - Building Heartbeat: {responseId = 34, timestamp = 1464000232875, commandsInProgress = False, componentsMapped = True}
INFO 2016-05-23 13:43:52,944 Controller.py:260 - Heartbeat response received (id = 35)
&lt;/PRE&gt;&lt;P&gt;HDP version 2.3.2.0-2950
ambari version 2.1.2&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 17:44:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161441#M123820</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-23T17:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161442#M123821</link>
      <description>&lt;P&gt;maybe this will help, but when starting hiveserver2 manually (/usr/bin/hive --service hiveserver2), I see its running with default memory values and not using the value in hive-site.xml, so maybe its why ambari having issues as well and i get the warning  that i dont have heapsize set (16/05/23 14:06:54 WARN conf.HiveConf: HiveConf of name hive.heapsize does not exist):&lt;/P&gt;&lt;PRE&gt;root      8622 30797  4 14:06 pts/0    00:00:09 /usr/java/default/bin/java -Xmx256m -Dhdp.version=2.3.2.0-2950 -Djava.net.preferIPv4Stack=true -Dhdp.version=2.3.2.0-2950 -Dhadoop.log.dir=/var/log/hadoop/root -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/hdp/2.3.2.0-2950/hadoop -Dhadoop.id.str=root -Dhadoop.root.logger=INFO,console -Djava.library.path=:/usr/hdp/2.3.2.0-2950/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.3.2.0-2950/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Xmx256m -Dhadoop.security.logger=INFO,NullAppender org.apache.hadoop.util.RunJar /usr/hdp/2.3.2.0-2950/hive/lib/hive-service-1.2.1.2.3.2.0-2950.jar org.apache.hive.service.server.HiveServer2
&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2016 18:11:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161442#M123821</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-23T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161443#M123822</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10642/neomerdien.html" nodeid="10642"&gt;@Andrey Nikitin&lt;/A&gt;&lt;P&gt;re-checking the above comment from &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; I see that you started hiveservice2 using cli and hence its not ambari managed or you are still able to see hiveserver2 stop in ambari.&lt;/P&gt;&lt;P&gt;Can you stop/kill the process of hiveserver2 from cli and try to start hive service from ambari ?&lt;/P&gt;&lt;P&gt;use this -&lt;/P&gt;&lt;P&gt;$ps -aef |grep hiveserver2  &amp;lt;- get pid from this command&lt;/P&gt;&lt;P&gt;$kill -9 &amp;lt;pid-of-hiveserver2-process&amp;gt;&lt;/P&gt;&lt;P&gt;restart hive service from ambari.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161443#M123822</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-23T19:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161444#M123823</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; i killed the process that was started manually and when i try to start hiveserver2 from ambari it does not start at all , thats why I opened this issue in the first place.&lt;/P&gt;&lt;P&gt;I have the following error in ambari:&lt;/P&gt;&lt;PRE&gt;Connection failed on host HOSTNAME:10000 
(Execution of '! beeline -u 'jdbc:hive2://HOSTNAME:10000/;transportMode=binary' -e '' 2&amp;gt;&amp;amp;1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''
returned 1. Error: Could not open client transport with JDBC Uri: jdbc:hive2://&lt;/PRE&gt;&lt;P&gt;HOSTNAME:10000/;&lt;/P&gt;transportMode=binary: java.net.ConnectException: Connection refused (state=08S01,code=0) Error: Could not open client transport with JDBC Uri: jdbc:hive2://&lt;P&gt;HOSTNAME:10000/;&lt;/P&gt;transportMode=binary: java.net.ConnectException: Connection refused (state=08S01,code=0))</description>
      <pubDate>Mon, 23 May 2016 20:01:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161444#M123823</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-23T20:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161445#M123824</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10642/neomerdien.html" nodeid="10642"&gt;@Andrey Nikitin&lt;/A&gt;&lt;P&gt;To debug this issue it's important to look at the HiveServer2 log. It goes into ${hive.log.dir}. You can search for this log location on the Ambari UI by searching for "log" under the Services &amp;gt; Hive &amp;gt; Configs, it should show up in the section "Advanced hive-env" and corresponds to field name "Hive Log Dir". Make sure that directory exists and writable by hive user. In this directory you will also find hivemetastore.log corresponding to Metastore service.&lt;/P&gt;&lt;P&gt;The manual starting of HiveServer2 that you did&lt;/P&gt;&lt;PRE&gt;/usr/bin/hive --service hiveserver2&lt;/PRE&gt;&lt;P&gt;was performed as root user, that is not going to work, the service needs to be started as "hive" user. When service is started manually, Ambari doesn't know about it and hence it will show as stopped. I think the way Ambari detects a running HiveServer2 service is by looking for a PID file that it put in the first place when it started HiveServer2. So, starting the service manually confuses Ambari and it shows it as not running.&lt;/P&gt;&lt;P&gt;Typically when things are fine, running the following on hive host&lt;/P&gt;&lt;PRE&gt;ps -ef | grep "^hive"&lt;/PRE&gt;&lt;P&gt;should show two processes, one for Hive Metastore and other for HiveServer2.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 23:58:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161445#M123824</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2016-05-23T23:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161446#M123825</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks for clarifying on how to start HiveServer2 manually.&lt;/P&gt;&lt;P&gt;the problem is that I am checking for  HiveServer2 logs (in /var/log/hive) but the problem is that the logs there are empty. for example the metastore logs are there and if I restart it the logs updates with information successfully. &lt;/P&gt;&lt;P&gt;I know for a fact that its the right log location because when I restart HiveServer2 through ambari, the timestamp on those logs updates and corresponds to the time I try to start the service in ambari but the logs still show up as empty and don't provide any information.&lt;/P&gt;&lt;P&gt;hope that explains my situation.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 03:22:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161446#M123825</guid>
      <dc:creator>neomerdien</dc:creator>
      <dc:date>2016-05-24T03:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161447#M123826</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/10642/neomerdien.html" nodeid="10642"&gt;@Andrey Nikitin&lt;/A&gt; for send us prompt replies.&lt;/P&gt;&lt;P&gt;This has been now resolved through  &lt;A href="https://community.hortonworks.com/questions/35195/how-can-i-check-ambari-start-services-commands.html#answer-35200" target="_blank"&gt;https://community.hortonworks.com/questions/35195/how-can-i-check-ambari-start-services-commands.html#answer-35200&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 22:10:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161447#M123826</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-24T22:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161448#M123827</link>
      <description>&lt;P&gt;I Had the same prob (with a different solution). Just sharing.&lt;/P&gt;&lt;P&gt;After I applied the smartsense recommendations I got an Alert from ambari (hive)&lt;/P&gt;&lt;PRE&gt;Fail: Execution of '! beeline -u 'jdbc:hive2://hivehost:10000/;transportMode=binary' -e '' 2&amp;gt;&amp;amp;1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'' returned 1. Error: Could not open client transport with JDBC Uri: jdbc:hive2://hivehost:10000/;transportMode=binary: java.net.ConnectException: Connection refused (state=08S01,code=0) Error: Could not open client transport with JDBC Uri: jdbc:hive2://hivehost:10000/;transportMode=binary: java.net.ConnectException: Connection refused (state=08S01,code=0) )
&lt;/PRE&gt;&lt;P&gt;I've been reading all the posts and comments that are related to this prob. Thanks to you guys!&lt;/P&gt;&lt;P&gt;Upon checking on hiveserver2.log, the issue was related on queuename (I've setup a yarn scheduler). The fix was, to set a queuename for hive and add 'hive' to submit application to that queuename&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 09:01:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161448#M123827</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-06-16T09:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: can't start hiveserver2 with ambari - beeline error Error: Could not open client transport with JDBC Uri</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161449#M123828</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Just adding another solution of the issue - I noticed that I could connect to localhost:3306 but not hostname.domain:3306 after deploying with "create new mysql"&lt;/P&gt;&lt;P&gt;Changing the bind address of mysql and restarting the mysql daemon resolved this issue&lt;/P&gt;&lt;PRE&gt;/# nano /etc/mysql/mysql.conf.d/mysqld.cnf

...
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 0.0.0.0     # Changed from 127.0.0.1 to resolve hive connectivity issue
&lt;/PRE&gt;&lt;P&gt;I dont know if this issue occurred to me because I used docker to deploy (getting some strange network side effects?) or if mysql changed default behaviour lately.&lt;/P&gt;&lt;P&gt;//Erik&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 07:50:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-start-hiveserver2-with-ambari-beeline-error-Error/m-p/161449#M123828</guid>
      <dc:creator>erik_alfthan</dc:creator>
      <dc:date>2017-12-05T07:50:28Z</dc:date>
    </item>
  </channel>
</rss>

