If I use external zookeeper it's ok.
1. I modified hbase-env.sh and add
    export HBASE_MANAGES_ZK=false
2. start zookeeper in standalone mode
3. start-hbase.sh
what's the problem?

On Mon, Jun 9, 2014 at 2:35 PM, Li Li <fancye...@gmail.com> wrote:
> letting start-hbase.sh do it for me
>
> On Mon, Jun 9, 2014 at 2:05 PM, Dima Spivak <dspi...@cloudera.com> wrote:
>> Dear Li,
>>
>> Are you managing your own ZK instance or just letting start-hbase.sh handle
>> it?
>>
>> -Dima
>>
>>
>> On Sun, Jun 8, 2014 at 10:17 PM, Li Li <fancye...@gmail.com> wrote:
>>
>>> I run start-hbase.sh and after a few minutes, the HMaster process
>>> disappears, but the HQuorumPeer process is ok. I can telnet localhost
>>> 2181.
>>> I am using hadoop-1.2.1(which is ok by visit http://DC-TEST-1:50070
>>> and http://DC-TEST-1:50030)
>>> hbase version is hbase-0.96.2-hadoop1
>>> content of hbase-site.xml:
>>> <configuration>
>>>   <property>
>>>     <name>hbase.rootdir</name>
>>>     <value>hdfs://DC-TEST-1:9000/hbase</value>
>>>   </property>
>>>   <property>
>>>     <name>hbase.cluster.distributed</name>
>>>     <value>true</value>
>>>   </property>
>>>   <property>
>>>     <name>hbase.zookeeper.quorum</name>
>>>     <value>DC-TEST-1</value>
>>>   </property>
>>>   <property>
>>>     <name>hbase.tmp.dir</name>
>>>     <value>/home/lili/hbase-tmp</value>
>>>   </property>
>>>   <property>
>>>     <name>hbase.zookeeper.property.dataDir</name>
>>>     <value>/home/lili/zkdata</value>
>>>   </property>
>>> </configuration>
>>>
>>>
>>> no errors in zookeeper's log.
>>> there is no 'hbase' directory in hdfs://DC-TEST-1:9000/
>>> But there are errors in master's log:
>>> 2014-06-09 13:06:27,545 WARN  [main-SendThread(DC-TEST-1:2181)]
>>> zookeeper.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:735)
>>>         at
>>> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
>>>         at
>>> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
>>> 2014-06-09 13:06:27,645 WARN  [main] zookeeper.RecoverableZooKeeper:
>>> Possibly transient ZooKeeper, quorum=DC-TEST-1:2181,
>>> exception=org.apache.zookeeper.KeeperException$ConnectionLossException:
>>> KeeperErrorCode = ConnectionLoss for /hbase
>>> 2014-06-09 13:06:27,645 ERROR [main] zookeeper.RecoverableZooKeeper:
>>> ZooKeeper create failed after 4 attempts
>>> 2014-06-09 13:06:27,646 ERROR [main] master.HMasterCommandLine: Master
>>> exiting
>>> java.lang.RuntimeException: Failed construction of Master: class
>>> org.apache.hadoop.hbase.master.HMaster
>>>         at
>>> org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2785)
>>>         at
>>> org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:184)
>>>         at
>>> org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:134)
>>>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>>>         at
>>> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
>>>         at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2799)
>>> Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException:
>>> KeeperErrorCode = ConnectionLoss for /hbase
>>>         at
>>> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
>>>         at
>>> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
>>>         at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
>>>         at
>>> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.createNonSequential(RecoverableZooKeeper.java:489)
>>>         at
>>> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.create(RecoverableZooKeeper.java:468)
>>>         at
>>> org.apache.hadoop.hbase.zookeeper.ZKUtil.createWithParents(ZKUtil.java:1235)
>>>         at
>>> org.apache.hadoop.hbase.zookeeper.ZKUtil.createWithParents(ZKUtil.java:1213)
>>>         at
>>> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.createBaseZNodes(ZooKeeperWatcher.java:174)
>>>         at
>>> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:167)
>>>         at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:473)
>>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>         at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>         at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>>         at
>>> org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2780)
>>>         ... 5 more
>>>

Reply via email to