No puedo conectarme al shell HBase en mi máquina Ubuntu local. Intenté buscar en Internet. No entender lo que está mal. En los registros sigo recibiendo este error:
zookeeper.RecoverableZooKeeper: Unable to create ZooKeeper Connection.
hbase-sitio.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:54310/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hduser/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2222</value>
<description>Property from ZooKeeper's config zoo.cfg.
The port at which the clients will connect.
</description>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
<description>Comma separated list of servers in the ZooKeeper Quorum.
</description>
</property>
</configuration>
sitio-core.xml
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/app/hadoop/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
<description>The name of the default file system.</description>
</property>
</configuration>
Respuesta1
Dado que está utilizando un puerto no predeterminado para zookeper, asegúrese de tener el mismo en el archivo de configuración de zookeper.zoológico.cfg como puertocliente=2222
también asegúrese de que suhbase-env.shEl archivo tiene debajo de la línea.
export HBASE_MANAGES_ZK=true
también para ubuntu asegúrese de que su/etc/hostsEl archivo no tiene problemas de bucle invertido. Debería tener una línea similar a la siguiente.
127.0.0.1 localhost