<?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 Does Zookeeper Server have to run on each worker/slave node for spark-llap? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217354#M74523</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="56704-nodes.png" style="width: 2732px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16155i184FA72CA364F5C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="56704-nodes.png" alt="56704-nodes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I setup Hive LLAP and spark-llap on HDP 2.6.2 cluster as per &lt;A href="https://community.hortonworks.com/content/kbentry/101181/rowcolumn-level-security-in-sql-for-apache-spark-2.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Row/Column-level Security in SQL for Apache Spark 2.1.1&lt;/A&gt;. It seems to work only when a Zookeeper Server is running on a worker/slave node. Is it by design or a bug?&lt;/P&gt;&lt;P&gt;I setup the HDP 2.6.2 cluster as per the attached simplified diagram. Zeppelin is able to create a Spark session via Livy and run "SHOW DATABASES" queries through HiveServer2 Interactive. However, it stalls when I try to run "SELECT" queries, which needs to run on worker/slave node. I see the following error in /hadoop/yarn/log/&amp;lt;YARN_APPLICATION_ID&amp;gt;/&amp;lt;YARN_CONTAINER_ID&amp;gt;/stderr:&lt;/P&gt;&lt;PRE&gt;18/02/13 02:24:38 INFO ZooKeeper: Client environment:java.library.path=/usr/hdp/current/hadoop-client/lib/native:/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
18/02/13 02:24:38 INFO ZooKeeper: Client environment:java.io.tmpdir=/hadoop/yarn/local/usercache/livy/appcache/application_1518487093485_0008/container_e07_1518487093485_0008_01_000002/tmp
18/02/13 02:24:38 INFO ZooKeeper: Client environment:java.compiler=&amp;lt;NA&amp;gt;
18/02/13 02:24:38 INFO ZooKeeper: Client environment:os.name=Linux
18/02/13 02:24:38 INFO ZooKeeper: Client environment:os.arch=amd64
18/02/13 02:24:38 INFO ZooKeeper: Client environment:os.version=3.10.0-693.11.6.el7.x86_64
18/02/13 02:24:38 INFO ZooKeeper: Client environment:user.name=yarn
18/02/13 02:24:38 INFO ZooKeeper: Client environment:user.home=/home/yarn
18/02/13 02:24:38 INFO ZooKeeper: Client environment:user.dir=/hadoop/yarn/local/usercache/livy/appcache/application_1518487093485_0008/container_e07_1518487093485_0008_01_000002
18/02/13 02:24:38 INFO ZooKeeper: Initiating client connection, connectString= sessionTimeout=1200000 watcher=shadecurator.org.apache.curator.ConnectionState@1620dca0
18/02/13 02:24:38 INFO LlapRegistryService: Using LLAP registry (client) type: Service LlapRegistryService in state LlapRegistryService: STARTED
18/02/13 02:24:38 INFO ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
18/02/13 02:24:38 WARN ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1125)
&lt;/PRE&gt;&lt;P&gt;I confirmed "SELECT" queries work when I install and run Zookeeper Server on the worker/slave node.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 02:59:32 GMT</pubDate>
    <dc:creator>nakagawa_mai</dc:creator>
    <dc:date>2019-08-18T02:59:32Z</dc:date>
    <item>
      <title>Does Zookeeper Server have to run on each worker/slave node for spark-llap?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217354#M74523</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="56704-nodes.png" style="width: 2732px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16155i184FA72CA364F5C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="56704-nodes.png" alt="56704-nodes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I setup Hive LLAP and spark-llap on HDP 2.6.2 cluster as per &lt;A href="https://community.hortonworks.com/content/kbentry/101181/rowcolumn-level-security-in-sql-for-apache-spark-2.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Row/Column-level Security in SQL for Apache Spark 2.1.1&lt;/A&gt;. It seems to work only when a Zookeeper Server is running on a worker/slave node. Is it by design or a bug?&lt;/P&gt;&lt;P&gt;I setup the HDP 2.6.2 cluster as per the attached simplified diagram. Zeppelin is able to create a Spark session via Livy and run "SHOW DATABASES" queries through HiveServer2 Interactive. However, it stalls when I try to run "SELECT" queries, which needs to run on worker/slave node. I see the following error in /hadoop/yarn/log/&amp;lt;YARN_APPLICATION_ID&amp;gt;/&amp;lt;YARN_CONTAINER_ID&amp;gt;/stderr:&lt;/P&gt;&lt;PRE&gt;18/02/13 02:24:38 INFO ZooKeeper: Client environment:java.library.path=/usr/hdp/current/hadoop-client/lib/native:/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
18/02/13 02:24:38 INFO ZooKeeper: Client environment:java.io.tmpdir=/hadoop/yarn/local/usercache/livy/appcache/application_1518487093485_0008/container_e07_1518487093485_0008_01_000002/tmp
18/02/13 02:24:38 INFO ZooKeeper: Client environment:java.compiler=&amp;lt;NA&amp;gt;
18/02/13 02:24:38 INFO ZooKeeper: Client environment:os.name=Linux
18/02/13 02:24:38 INFO ZooKeeper: Client environment:os.arch=amd64
18/02/13 02:24:38 INFO ZooKeeper: Client environment:os.version=3.10.0-693.11.6.el7.x86_64
18/02/13 02:24:38 INFO ZooKeeper: Client environment:user.name=yarn
18/02/13 02:24:38 INFO ZooKeeper: Client environment:user.home=/home/yarn
18/02/13 02:24:38 INFO ZooKeeper: Client environment:user.dir=/hadoop/yarn/local/usercache/livy/appcache/application_1518487093485_0008/container_e07_1518487093485_0008_01_000002
18/02/13 02:24:38 INFO ZooKeeper: Initiating client connection, connectString= sessionTimeout=1200000 watcher=shadecurator.org.apache.curator.ConnectionState@1620dca0
18/02/13 02:24:38 INFO LlapRegistryService: Using LLAP registry (client) type: Service LlapRegistryService in state LlapRegistryService: STARTED
18/02/13 02:24:38 INFO ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
18/02/13 02:24:38 WARN ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1125)
&lt;/PRE&gt;&lt;P&gt;I confirmed "SELECT" queries work when I install and run Zookeeper Server on the worker/slave node.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:59:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217354#M74523</guid>
      <dc:creator>nakagawa_mai</dc:creator>
      <dc:date>2019-08-18T02:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does Zookeeper Server have to run on each worker/slave node for spark-llap?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217355#M74524</link>
      <description>&lt;P&gt;Similar issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/86429/cannot-connect-to-zookeeper-server-from-zookeeper.html" target="_blank"&gt;https://community.hortonworks.com/questions/86429/cannot-connect-to-zookeeper-server-from-zookeeper.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Problem is your zookeeper address which is pointing to localhost:2181, the worker/slave node does not have a local zookeeper running hence the "Connection refused". Check link above for detailed solution.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 03:40:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217355#M74524</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2018-02-14T03:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Does Zookeeper Server have to run on each worker/slave node for spark-llap?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217356#M74525</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2827/umairkhan.html" nodeid="2827"&gt;@Umair Khan&lt;/A&gt; - Thanks for your prompt reply and your try to help. It would have been more helpful if you had provided how to change the zookeeper address since it's not a bug. I already found how to&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 09:51:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217356#M74525</guid>
      <dc:creator>nakagawa_mai</dc:creator>
      <dc:date>2018-02-14T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does Zookeeper Server have to run on each worker/slave node for spark-llap?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217357#M74526</link>
      <description>&lt;P&gt;I found we can configure Zookeeper Server address for Spark worker/slave nodes by setting &lt;EM&gt;spark.hadoop.hive.zookeeper.quorum &lt;/EM&gt;at `Custom spark2-default`&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="56746-sparkhadoophivezookeeperquorum.png" style="width: 1942px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16154i0668F7E007C99DB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="56746-sparkhadoophivezookeeperquorum.png" alt="56746-sparkhadoophivezookeeperquorum.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:59:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Does-Zookeeper-Server-have-to-run-on-each-worker-slave-node/m-p/217357#M74526</guid>
      <dc:creator>nakagawa_mai</dc:creator>
      <dc:date>2019-08-18T02:59:25Z</dc:date>
    </item>
  </channel>
</rss>

