title: Hbase connection about zookeeper error
body: <p>Environment :  Ubuntu 14.04 , hadoop-2.2.0 , hbase-0.98.7</p>
  
  <p>when i start hadoop and hbase(single node mode), both all success (I also check the website 8088 for hadoop, 60010 for hbase)</p>
  
  <pre><code>jps
  4507 SecondaryNameNode
  5350 HRegionServer
  4197 NameNode
  4795 NodeManager
  3948 QuorumPeerMain
  5209 HMaster
  4678 ResourceManager
  5831 Jps
  4310 DataNode
  </code></pre>
  
  <p>but when i check hbase-hadoop-master-localhost.log, i found a information following</p>
  
  <pre><code>    2014-10-23 14:16:11,392 INFO  [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
  2014-10-23 14:16:11,426 INFO  [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
  </code></pre>
  
  <p>i have google lot of website for that unknown error problem, but i can't solve this problem...
  Following is my hadoop and hbase configuration </p>
  
  <p>Hadoop :</p>
  
  <p>salves content : localhost</p>
  
  <p>core-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
           &lt;name&gt;fs.defaultFS&lt;/name&gt;
           &lt;value&gt;hdfs://localhost:8020&lt;/value&gt;
       &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>yarn-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;property&gt;
      &lt;name&gt;yarn.resourcemanager.resource-tracker.address&lt;/name&gt;
      &lt;value&gt;localhost:9001&lt;/value&gt;
      &lt;description&gt;host is the hostname of the resource manager and 
      port is the port on which the NodeManagers contact the Resource Manager.
      &lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.resourcemanager.scheduler.address&lt;/name&gt;
      &lt;value&gt;localhost:9002&lt;/value&gt;
      &lt;description&gt;host is the hostname of the resourcemanager and port is the port
      on which the Applications in the cluster talk to the Resource Manager.
      &lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.resourcemanager.scheduler.class&lt;/name&gt;
      &lt;value&gt;org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler&lt;/value&gt;
      &lt;description&gt;In case you do not want to use the default scheduler&lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.resourcemanager.address&lt;/name&gt;
      &lt;value&gt;localhost:9003&lt;/value&gt;
      &lt;description&gt;the host is the hostname of the ResourceManager and the port is the port on
      which the clients can talk to the Resource Manager. &lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.nodemanager.local-dirs&lt;/name&gt;
      &lt;value&gt;&lt;/value&gt;
      &lt;description&gt;the local directories used by the nodemanager&lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.nodemanager.address&lt;/name&gt;
      &lt;value&gt;localhost:9004&lt;/value&gt;
      &lt;description&gt;the nodemanagers bind to this port&lt;/description&gt;
    &lt;/property&gt;  
  
    &lt;property&gt;
      &lt;name&gt;yarn.nodemanager.resource.memory-mb&lt;/name&gt;
      &lt;value&gt;10240&lt;/value&gt;
      &lt;description&gt;the amount of memory on the NodeManager in GB&lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.nodemanager.remote-app-log-dir&lt;/name&gt;
      &lt;value&gt;/app-logs&lt;/value&gt;
      &lt;description&gt;directory on hdfs where the application logs are moved to &lt;/description&gt;
    &lt;/property&gt;
  
     &lt;property&gt;
      &lt;name&gt;yarn.nodemanager.log-dirs&lt;/name&gt;
      &lt;value&gt;&lt;/value&gt;
      &lt;description&gt;the directories used by Nodemanagers as log directories&lt;/description&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt;
      &lt;value&gt;mapreduce_shuffle&lt;/value&gt;
      &lt;description&gt;shuffle service that needs to be set for Map Reduce to run &lt;/description&gt;
    &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Hbase:</p>
  
  <p>hbase-env.sh :</p>
  
  <pre><code>..
  export JAVA_HOME="/usr/lib/jvm/java-7-oracle"
  ..
  export HBASE_MANAGES_ZK=true
  ..
  </code></pre>
  
  <p>hbase-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;hbase.rootdir&lt;/name&gt;
          &lt;value&gt;hdfs://localhost:8020/hbase&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt; 
          &lt;name&gt;hbase.cluster.distributed&lt;/name&gt; 
          &lt;value&gt;true&lt;/value&gt; 
      &lt;/property&gt; 
      &lt;property&gt;
          &lt;name&gt;hbase.zookeeper.property.clientPort&lt;/name&gt;
          &lt;value&gt;2181&lt;/value&gt; 
      &lt;/property&gt;
  &lt;/configuration&gt;  
  </code></pre>
  
  <p>regionserver content : localhost</p>
  
  <p>my /etc/hosts content:</p>
  
  <pre><code>127.0.0.1       localhost
  #127.0.1.1      localhost
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>I try lots of methods to solve it, but all fail, please help me to solve it, i really need to know how to solve. </p>
  
  <p>Originally, i run a mapreuce program and when map 67% reduce 0%, it print out some INFO and some of INFO is following:</p>
  
  <pre><code>14/10/23 15:50:41 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=60000 watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@ce1472
  14/10/23 15:50:41 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
  14/10/23 15:50:41 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
  14/10/23 15:50:41 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1493be510380007, negotiated timeout = 40000
  14/10/23 15:50:43 INFO mapred.LocalJobRunner: map &gt; sort
  14/10/23 15:50:46 INFO mapred.LocalJobRunner: map &gt; sort
  </code></pre>
  
  <p>then it crash.. I think program maybe in dead lock and that is what i want to solve zookeeper problem above.</p>
  
  <p>If want another configuration file i set in hadoop or hbase or others, just tell me, i'll post up. 
  thanks!</p>