Let me explain my situation first:
In the HBase shell interface, you can run it with commands, but not with Java API.
HBase and zookeeper configuration files are all OK.
During Java API operation, it is stuck and cannot be connected. Look at the HBase and zookeeper logs. There is no information available.
When the program runs for a long time, it reports an error (intercept a useful line):
java. net. UnknownHostException: can not resolve hadoop01,16020,164077701361
Maybe I can’t recognize Hadoop 01. What’s this?It’s my node hostname.
Here’s how to view it:
1 zkServer.SH check whether there are any leaders, followers, etc. in zookeeper.Mine (is it a zookeeper configuration problem)
2. Check the zookeeper log and enter the logs directory. One of mine is Hadoop 01 and the other is master (previous host name).
At this point, I probably know where the problem is
1 . Host name and configuration conflict
2 . HBase version data conflict (I have installed different versions)
1. Close HBase and zookeeper
2 delete the data file of zookeeper (violence works miracles). Mine is in the data. Pay attention not to delete myid (all three nodes are deleted)
3 restart zookeeper and HBase
Run java code
- [Solved] Hbase Error: ERROR: KeeperErrorCode = NoNode for /hbase/master
- Spring integrated HBase error [How to Solve]
- [Solved] Unable to connect to a as user root com.jcraft.jsch.JSchException: Auth failUnable to connect
- [Solved] JAVA Error: Error:A JNI error has occurred,please check your installation and try again
- Hadoop Startup Error: sbin/start-dfs.sh [How to Solve]
- [Solved] Sqoop Error: ERROR tool.ImportTool: Import failed: java.io.IOException
- ZK Error contacting service. It is probably not running [How to Solve]
- [Solved] Hadoop Error: HADOOP_HOME and hadoop.home.dir are unset.
- [Solved] Zookeeper cluster error: Error contacting service It is probably not running. (alicloud server)
- The Java class generated by protocol reports an error: cannot access
- How to Solve Java Runtime (class file version 53.0)ERROR
- Run hadoop fs -put Command Error: java.io.IOException: Got error, status message , ack with firstBadLink
- Java uses class array to report error Exception in thread “main” java.lang.NullPointerException solution
- How to Solve Linux connecte to the old version of SQL Server Error
- [Solved] IDEA Start Porject Error: java: Compilation failed: internal java compiler error
- javaweb Connect Datas Error: che.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1444)
- How to Solve classnotfoundexception error in spark without Hadoop runtime
- [Solved] Mapreducer Class Conversion error: java.lang.ClassCastException
- How to Fix COM Surrogate has stopped working in Windows 7
- MapReduce running in Hadoop environment with maven