Error: connection closed in HBase shell command. Problem solved

Winter rain winter rain winter rain 2022-02-13 08:01:46 阅读数:67

error connection closed hbase shell

Problem description

When doing big data storage experiments hbase Of shell An error is reported in the command result ,Connection closed
 Insert picture description here
Check the log and find that the error reporting service does not exist
 Insert picture description here

The final solution

Check a lot of , The final discovery is jdk Version problem , I am using java-17.0.1 The version is too high , Finally, change it to jdk-8u331-linux-x64.tar.gz It's settled.

My versions are

hadoop 3.2.2
hbase 2.3.6
java 1.8.0

Enclosed hadoop、hbase、java Collocation table

 Insert picture description here
 Insert picture description here

Solution steps

1 Empty hadoop Temporary files for

Shut down first hbase and hadoop process

stop-all.sh

see hdfs-site.xml
 Insert picture description here
Delete all the files in these two folders (name The same goes for folders )
 Insert picture description here

Re execution hadoop format
 Insert picture description here

2 hold java Change to the specified version ( Don't forget to change... In the environment variable java Folder name )

What I use here is 1.8.0_331

java -version

 Insert picture description here

3 Restart the computer , start-up ssh,hadoop,hbase

service ssh start
start-dfs.sh
start-hbase.sh

4 Get into hbase shell, Find success

 Insert picture description here

summary

It took a day to do well , When doing experiments in the future, we must follow the teacher's version , Scald !!

copyright:author[Winter rain winter rain winter rain],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130801416651.html