Hbase startup error Exception in thread “main” java.lang.NoClassDefFoundError: xxx

When I installed Hbase today, I started using the command bin/start-hbase.sh and
reported an error. The error message is as follows:
Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

   Obviously, this is a common java program error format (that is, a certain package cannot be found). If it is a simple java program, it is easy to solve,
  but this is a problem that occurs when hbase starts. At that time, it was puzzling. Baidu The solution is only based on the java program. At first I thought it was a configuration problem, but after checking and modifying it for a long time, I still reported an error. Calm down and think, since it is a java program error, it should not be a configuration error, most likely an error in the command itself. So directly re-downloaded hbase, and finally solved the problem.
  I don't know exactly which link caused the error of the bin command. It is guessed that the file is damaged.

Guess you like

Origin blog.csdn.net/weixin_44732379/article/details/118161803