Habse startup error
Habse startup error error: could not find or load main class org apache.hadoop.hbase.util.GetJavaProperty
.
after referring to many articles on the Internet, it’s useless to modify classpath if the version doesn’t match.
Later, I saw an issue mentioned on Apache JIRA. Check his comments and see the following sentence:
Happens because I added hadoop to my PATH so then I go the HADOOP_IN_path in bin/hbase.
Thinking that Hadoop has been pre installed on the machine, it may be caused by this. Find hadpop in the
the following variables are found: bin/HBase
file_IN_Path
#If avail, add Hadoop to the CLASSPATH and to the JAVA_LIBRARY_PATH
# Allow this functionality to be disabled
if [ "$HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP" != "true" ] ; then
HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" which hadoop 2>/dev/null)
fi
In line 223 (hbase-3.0.0-alpha-1).
then add a line above this:
export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP="true"
Disable lookup of haddop classpath.
Print the classpath with bin/HBase classpath
, and it is found that there is no Hadoop path. There is no error message in bin/HBase version
, and there will be no error when running the List
command in bin/HBase shell
. So the problem is solved.
However, why does the Hadoop path cause this problem? I didn’t take a closer look. There may be an explanation in the issue mentioned above. If you are interested, you can study it. I have to say that useful information on the Internet is too difficult to find. Make a record here. I hope this solution can help some people.
Read More:
- [Solved] Hadoop Error: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- HBase shell Find ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- [Solved] hbase Create Sheet Error: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- [Solved] HBase Error: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- [Solved] hbase Create Sheet Error: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- [Solved] eclipse Error: org.apache.hadoop.hbase.NotServingRegionException:
- [Solved] Flume Error: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
- [Solved] Exception in thread “main“ org.apache.spark.SparkException: When running with master ‘yarn‘ either
- [Solved] Error: Main class not found or could not be loaded com.jawasoft.
- [Solved] Sparksql error: Exception in thread “main” org.apache.spark.sql.catalyst.errors.package$TreeNodeException
- [Solved] SAX2 driver class org.apache.xerces.parsers.SAXParser not found
- [Solved] Groovy Project Compile Error: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream
- [Solved] Hive Error: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask
- [Solved] Failed update hbase:meta table descriptor HBase Startup Error
- [Maven Error] Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
- Start error in maven web project java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
- [Solved] Springboot Error: org.apache.catalina.core.ContainerBase : A child container failed during start
- How to Solve HBase error: region is not online
- [Solved] java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer
- wind System Black Windows Start hadoop Error [How to Solve]