<?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: How to use Beeline -u with zk? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163300#M125674</link>
    <description>&lt;P&gt;Its working for me , I did the following.  1. Opend the port 2181 2. Stop the local firewall on all nodes. (iptables).&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2016 07:36:16 GMT</pubDate>
    <dc:creator>mpandit</dc:creator>
    <dc:date>2016-12-20T07:36:16Z</dc:date>
    <item>
      <title>How to use Beeline -u with zk?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163298#M125672</link>
      <description>&lt;P&gt;I am able to connect to hive via beeline by issuing&lt;/P&gt;&lt;P&gt;&amp;gt;beeline&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&amp;gt;!connect jdbc:hive2://zzz.com:2181,zzzz.com:2181,zzz.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/P&gt;&lt;P&gt;However I would like to connect to hive in 1 shot using -u&lt;/P&gt;&lt;PRE&gt;&amp;gt;beeline -u jdbc:hive2://zzz.com:2181,zzzz.com:2181,zzz.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/PRE&gt;&lt;P&gt;and it fails&lt;/P&gt;&lt;PRE&gt;[LAKE] [smanjee@lake1 ~]# beeline -u jdbc:hive2://z:2181,zzzzz.com:2181,zzzzzz.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.3.0-37/phoenix/phoenix-4.7.0.2.5.3.0-37-hive.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.3.0-37/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Connecting to jdbc:hive2://zzzzz.com:2181,zzzzz.com:2181,zzzzz.com:2181/
16/12/19 21:56:21 [main]: WARN jdbc.HiveConnection: Failed to connect to zzzzz.com:2181
Error: Could not open client transport with JDBC Uri: jdbc:hive2://zzzzz.com:2181/: null (state=08S01,code=0)
Beeline version 1.2.1000.2.5.3.0-37 by Apache Hive
0: jdbc:hive2://zzzz.com:2 (closed)&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 05:58:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163298#M125672</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-20T05:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Beeline -u with zk?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163299#M125673</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; I am able to connect in one shot only after using the same host in the url from where I am running the beeline. e.g if I am running beeline from host z , I was able to connect using beeline -u jdbc:hive2://z:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2  I am thinking I might have to open the port 2181 explicitly for other host to access.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:20:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163299#M125673</guid>
      <dc:creator>mpandit</dc:creator>
      <dc:date>2016-12-20T07:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Beeline -u with zk?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163300#M125674</link>
      <description>&lt;P&gt;Its working for me , I did the following.  1. Opend the port 2181 2. Stop the local firewall on all nodes. (iptables).&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:36:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163300#M125674</guid>
      <dc:creator>mpandit</dc:creator>
      <dc:date>2016-12-20T07:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Beeline -u with zk?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163301#M125675</link>
      <description>&lt;P&gt;HWX support found my issue.  here is what I was doing wrong:::  Forgot the double quotes around the jdbc driver&lt;/P&gt;&lt;PRE&gt;beeline -u "jdbc:hive2://example.com:2181,example.com:2181,example:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2" &lt;/PRE&gt;&lt;P&gt;and now it works.  cool.  &lt;A rel="user" href="https://community.cloudera.com/users/9842/mpandit.html" nodeid="9842"&gt;@milind pandit&lt;/A&gt; thank you for your help.  I am sure port checking should be on the list of what to check.  however, the issue where was missing double quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:29:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-Beeline-u-with-zk/m-p/163301#M125675</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-20T11:29:33Z</dc:date>
    </item>
  </channel>
</rss>

