<?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: The node /hbase is not in ZooKeeper. It should have been written by the master. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155121#M32848</link>
    <description>&lt;P&gt;The zkUrl you provided the first time should be correct:&lt;/P&gt;&lt;PRE&gt;"zk1-titanu:2181/hbase-unsecure"&lt;/PRE&gt;&lt;P&gt;By default, HBase on HDP will use /hbase-unsecure. If you enable Kerberos authentication, it will use /hbase-secure instead.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 03:32:52 GMT</pubDate>
    <dc:creator>elserj</dc:creator>
    <dc:date>2016-06-24T03:32:52Z</dc:date>
    <item>
      <title>The node /hbase is not in ZooKeeper. It should have been written by the master.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155120#M32847</link>
      <description>&lt;P&gt;
	I am trying to connect to HBase from Spark via Phoenix (using the official plugin described &lt;A target="_blank" href="https://phoenix.apache.org/phoenix_spark.html"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;
	Here is my scala Spark code:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;package com.zachk

import org.apache.spark.SparkContext
import org.apache.spark.sql.SQLContext
import org.apache.phoenix.spark._
import org.apache.spark.rdd.RDD

object App {
  def main(args : Array[String]) {
    val sc = new SparkContext()
    val rdd: RDD[Map[String, AnyRef]] = sc.phoenixTableAsRDD(
      //"TABLE1", Seq("ID", "COL1"), zkUrl = Some("zk1-titanu:2181/hbase-unsecure")
      //"TABLE1", Seq("ID", "COL1"), zkUrl = Some("zk1-titanu:2181/hbase-secure")
      "TABLE1", Seq("ID", "COL1"), zkUrl = Some("zk1-titanu:2181")
    )
    println(rdd.count())
}&lt;/PRE&gt;&lt;P&gt;I am compiling with Maven.&lt;/P&gt;&lt;P&gt;I am running with this spark-submit command:&lt;/P&gt;&lt;PRE&gt;/usr/bin/spark-submit --class com.zachk.App --master local[*] target/phoenix-hbase-test-0.0.1-jar-with-dependencies.jar&lt;/PRE&gt;&lt;P&gt;When I run, I get this error continually: &lt;STRONG&gt;ERROR ConnectionManager$HConnectionImplementation: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As shown in the comments above, I have already tried the suggestion in this similarly-named &lt;A target="_blank" href="https://community.hortonworks.com/questions/26622/the-node-hbase-is-not-in-zookeeper-it-should-have.html"&gt;post&lt;/A&gt;. I would appreciate any help!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:32:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155120#M32847</guid>
      <dc:creator>zachkirsch</dc:creator>
      <dc:date>2016-06-24T03:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: The node /hbase is not in ZooKeeper. It should have been written by the master.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155121#M32848</link>
      <description>&lt;P&gt;The zkUrl you provided the first time should be correct:&lt;/P&gt;&lt;PRE&gt;"zk1-titanu:2181/hbase-unsecure"&lt;/PRE&gt;&lt;P&gt;By default, HBase on HDP will use /hbase-unsecure. If you enable Kerberos authentication, it will use /hbase-secure instead.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:32:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155121#M32848</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-06-24T03:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: The node /hbase is not in ZooKeeper. It should have been written by the master.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155122#M32849</link>
      <description>&lt;P&gt;The problem is in missing colons in the URLs you tried. It's supposed to be "zk1-titanu:2181&lt;STRONG&gt;:&lt;/STRONG&gt;/hbase-unsecure"&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:36:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155122#M32849</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-06-24T03:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: The node /hbase is not in ZooKeeper. It should have been written by the master.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155123#M32850</link>
      <description>&lt;P&gt;The functions `phoenixTableAsDataFrame`, `phoenixTableAsRDD` and `saveToPhoenix` all support
optionally specifying a `conf` Hadoop configuration parameter with custom Phoenix client settings,
as well as an optional `zkUrl` parameter for the Phoenix connection URL.&lt;/P&gt;&lt;P&gt;val configuration = new Configuration()&lt;/P&gt;&lt;P&gt;// set zookeeper.znode.parent and hbase.zookeeper.quorum in the conf&lt;/P&gt;&lt;P&gt;"TABLE1", Seq("ID", "COL1"), conf = configuration&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:39:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155123#M32850</guid>
      <dc:creator>tyu</dc:creator>
      <dc:date>2016-06-24T03:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: The node /hbase is not in ZooKeeper. It should have been written by the master.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155124#M32851</link>
      <description>&lt;P&gt;You're missing a ':' after 2181&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:42:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-node-hbase-is-not-in-ZooKeeper-It-should-have-been/m-p/155124#M32851</guid>
      <dc:creator>rgelhausen</dc:creator>
      <dc:date>2016-06-24T03:42:56Z</dc:date>
    </item>
  </channel>
</rss>

