<?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 Zookeeper connection with Hbase in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-connection-with-Hbase/m-p/14814#M2199</link>
    <description>&lt;P&gt;Hi, i'm importing data from oracle db to hbase with sqoop.&lt;BR /&gt;I used&amp;nbsp; sqoop line command, and all it's done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:oracle:thin:@XXX:port/XXX --username XXX --password XXX --table XXX -m 1 --incremental lastmodified --last-value '2014-06-23' --check-column XXX --append --hbase-table XXX --column-family info --hbase-row-key XXX  --hbase-bulkload&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tryed with oozie, and i have got this error in loop:&lt;/P&gt;&lt;PRE&gt;INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181.
Will not attempt to authenticate using SASL (unknown error)
WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error,
closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My cluster configuration is with 5 host:&lt;BR /&gt;master,slave1,slave2,slave3,&lt;/P&gt;&lt;DIV&gt;slave4&lt;BR /&gt;&lt;BR /&gt;sqoop 1 client:&lt;BR /&gt;slave1,slave2,slave3,slave4&lt;BR /&gt;&lt;BR /&gt;zookeeper server:&lt;BR /&gt;master,slave1,slave2&lt;BR /&gt;&lt;BR /&gt;hbase server:&lt;BR /&gt;hbaserestserver -&amp;gt; master&lt;BR /&gt;hbasethriftserver -&amp;gt; master&lt;BR /&gt;master -&amp;gt; master&lt;BR /&gt;regionserver -&amp;gt; slave1,slave2,slave3,slave4&lt;BR /&gt;&lt;BR /&gt;I have some doubt on my configuration:&lt;BR /&gt;if my configuration is all ok, my question is:&lt;BR /&gt;zookeeper server with localhost/&lt;A target="_blank" href="http://127.0.0.1:2181"&gt;127.0.0.1:2181&lt;/A&gt; is correct to start?&lt;BR /&gt;because i've got only 3 zookeeper server and i think this is my problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And there is some SQOOP_CLASSPATH or HBASE_CLASSPATH to set? oozie don't initialize everything?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIV&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:01:50 GMT</pubDate>
    <dc:creator>aniston</dc:creator>
    <dc:date>2022-09-16T09:01:50Z</dc:date>
    <item>
      <title>Zookeeper connection with Hbase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-connection-with-Hbase/m-p/14814#M2199</link>
      <description>&lt;P&gt;Hi, i'm importing data from oracle db to hbase with sqoop.&lt;BR /&gt;I used&amp;nbsp; sqoop line command, and all it's done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:oracle:thin:@XXX:port/XXX --username XXX --password XXX --table XXX -m 1 --incremental lastmodified --last-value '2014-06-23' --check-column XXX --append --hbase-table XXX --column-family info --hbase-row-key XXX  --hbase-bulkload&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tryed with oozie, and i have got this error in loop:&lt;/P&gt;&lt;PRE&gt;INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181.
Will not attempt to authenticate using SASL (unknown error)
WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error,
closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My cluster configuration is with 5 host:&lt;BR /&gt;master,slave1,slave2,slave3,&lt;/P&gt;&lt;DIV&gt;slave4&lt;BR /&gt;&lt;BR /&gt;sqoop 1 client:&lt;BR /&gt;slave1,slave2,slave3,slave4&lt;BR /&gt;&lt;BR /&gt;zookeeper server:&lt;BR /&gt;master,slave1,slave2&lt;BR /&gt;&lt;BR /&gt;hbase server:&lt;BR /&gt;hbaserestserver -&amp;gt; master&lt;BR /&gt;hbasethriftserver -&amp;gt; master&lt;BR /&gt;master -&amp;gt; master&lt;BR /&gt;regionserver -&amp;gt; slave1,slave2,slave3,slave4&lt;BR /&gt;&lt;BR /&gt;I have some doubt on my configuration:&lt;BR /&gt;if my configuration is all ok, my question is:&lt;BR /&gt;zookeeper server with localhost/&lt;A target="_blank" href="http://127.0.0.1:2181"&gt;127.0.0.1:2181&lt;/A&gt; is correct to start?&lt;BR /&gt;because i've got only 3 zookeeper server and i think this is my problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And there is some SQOOP_CLASSPATH or HBASE_CLASSPATH to set? oozie don't initialize everything?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:01:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-connection-with-Hbase/m-p/14814#M2199</guid>
      <dc:creator>aniston</dc:creator>
      <dc:date>2022-09-16T09:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper connection with Hbase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-connection-with-Hbase/m-p/15528#M2200</link>
      <description>Since Oozie lacks knowledge of where your HBase configs lie, you will need to pass the client hbase-site.xml file (placed somewhere on HDFS, by copying from /etc/hbase/conf/hbase-site.xml on any HBase gateway node) via the &amp;lt;job-xml&amp;gt;…&amp;lt;/job-xml&amp;gt; option.&lt;BR /&gt;&lt;BR /&gt;Alternatively, try the below command instead (will not be sufficient for secured clusters, which need further properties), replacing zk-host1,zk-host2,zk-host3 with your actual 3 hosts appropriately:&lt;BR /&gt;&lt;BR /&gt;sqoop import -Dhbase.zookeeper.quorum=zk-host1,zk-host2,zk-host3 --connect jdbc:oracle:thin:@XXX:port/XXX --username XXX --password XXX --table XXX -m 1 --incremental lastmodified --last-value '2014-06-23' --check-column XXX --append --hbase-table XXX --column-family info --hbase-row-key XXX --hbase-bulkload</description>
      <pubDate>Sun, 20 Jul 2014 13:37:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-connection-with-Hbase/m-p/15528#M2200</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-07-20T13:37:40Z</dc:date>
    </item>
  </channel>
</rss>

