복붙노트

[HADOOP] HBase 오류 : zookeeper.znode.parent 불일치

HADOOP

HBase 오류 : zookeeper.znode.parent 불일치

나는 Hadoop을 배우려고 노력 중이며 Hadoop Definitive Guide의 HBase 섹션에 도달했습니다. HBase를 시작 하려다가 오류가 발생했습니다. 누군가가 나에게 단계별 가이드를 줄 수 있습니까?

opel@ubuntu:~$ zkServer.sh start
JMX enabled by default
Using config: /home/opel/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
opel@ubuntu:~$ start-hbase.sh 
starting master, logging to /home/opel/hbase-0.94.20/logs/hbase-opel-master-ubuntu.out
opel@ubuntu:~$ hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.20, r09c60d770f2869ca315910ba0f9a5ee9797b1edc, Fri May 23 22:00:41 PDT 2014

hbase(main):001:0> status
14/06/02 22:40:44 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:45 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:47 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:49 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:51 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:55 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:59 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

Here is some help for this command:
Show cluster status. Can be 'summary', 'simple', or 'detailed'. The
default is 'summary'. Examples:

  hbase> status
  hbase> status 'simple'
  hbase> status 'summary'
  hbase> status 'detailed'

뭐가 잘못 됐니?

해결법

  1. ==============================

    1.나는 똑같은 문제가 있었다. 나에게있어 솔루션은 hbase-site.xml에 다음 속성을 추가하는 것이었다. (나를 위해 / usr / lib / hbase / conf 디렉토리에서 찾을 수있다.)

    나는 똑같은 문제가 있었다. 나에게있어 솔루션은 hbase-site.xml에 다음 속성을 추가하는 것이었다. (나를 위해 / usr / lib / hbase / conf 디렉토리에서 찾을 수있다.)

    <configuration>
            <property>
                    <name>zookeeper.znode.parent</name>
                    <value>/hbase-unsecure</value>
            </property>
    </configuration>
    

    그러나 이것은 독립 실행 형 모드에만 해당됩니다. 외부 ZooKeeper를 사용할 때이 문제를 해결하는 방법을 아직 모릅니다.

  2. ==============================

    2.Cloudera Manager VM을 사용하는 경우 구성에 문제가 없습니다.

    Cloudera Manager VM을 사용하는 경우 구성에 문제가 없습니다.

    문제는 HMaster가 작동하지 않는다는 것입니다. 이 문제를 해결하려면 Cloudera Manager로 가서 HBase 서비스를 다시 시작하십시오. 문제를 해결할 것입니다.

  3. ==============================

    3.이 문제가 생겼을 때 나는 사육사를 사용하지 않음으로써 이것을 고칠 수 있었다. 독립 실행 형 모드에서 HBase를 실행하는 경우 사육사가 필요하지 않습니다. 나는 사육사 부분을 건너 뛰고 hbase.cluster.distributed 속성을 false로 만들 수있었습니다.

    이 문제가 생겼을 때 나는 사육사를 사용하지 않음으로써 이것을 고칠 수 있었다. 독립 실행 형 모드에서 HBase를 실행하는 경우 사육사가 필요하지 않습니다. 나는 사육사 부분을 건너 뛰고 hbase.cluster.distributed 속성을 false로 만들 수있었습니다.

    <이름> hbase.cluster.distributed <값> 거짓

    이제 동물원없이 hbase로 게임을 할 수있었습니다.

  4. ==============================

    4.cloudera 관리 페이지에서 서비스 -> hbase 1로 이동하여 서비스 문제가 해결됩니다. hbase 비보안 속성을 만들 필요가 없습니다.

    cloudera 관리 페이지에서 서비스 -> hbase 1로 이동하여 서비스 문제가 해결됩니다. hbase 비보안 속성을 만들 필요가 없습니다.

  5. from https://stackoverflow.com/questions/24008207/hbase-error-zookeeper-znode-parent-mismatch by cc-by-sa and MIT license