Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the hbase startup prompt cannot find usr.java.packages.lib.amd64?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "hbase startup tips can not find usr.java.packages.lib.amd64 how to do", the article explained the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "hbase startup tips can not find usr.java.packages.lib.amd64 how to do" it!

When hbase starts, the prompt cannot find usr.java.packages.lib.amd64:.usr.lib64:.lib64

As you can see from the hint, hbase seems to be looking for platform-related binaries and so on. It looks like a java.library.path problem.

Look at the hbase startup command script:

This reads the java.library.path from the hadoop. One of the functions of the variable hadoop is to set native. Is there something wrong with the native setting of hadoop?

Look at the output variables:

Jetty-sslengine-6.1.26.jar:/opt/modules/hbase/lib/jetty-util-6.1.26.jar:/opt/modules/hbase/lib/joni-2.1.2.jar:/opt/modules/hbase/lib/jruby-complete-1.6.8.jar:/opt/modules/hbase/lib/jsch-0.1.42.jar:/opt/modules/hbase/lib/jsp-2.1-6.1.14.jar:/opt/modules/ Hbase/lib/jsp-api-2.1-6.1.14.jar:/opt/modules/hbase/lib/jsr305-1.3.9.jar:/opt/modules/hbase/lib/junit-4.12.jar:/opt/modules/hbase/lib/leveldbjni-all-1.8.jar:/opt/modules/hbase/lib/libthrift-0.9.0.jar:/opt/modules/hbase/lib/log4j-1.2.17.jar:/opt/modules/hbase/ Lib/metrics-core-2.2.0.jar:/opt/modules/hbase/lib/netty-3.2.4.Final.jar:/opt/modules/hbase/lib/netty-all-4.0.23.Final.jar:/opt/modules/hbase/lib/paranamer-2.3.jar:/opt/modules/hbase/lib/phoenix-4.7.0-HBase-1.0-server.jar:/opt/modules/hbase/lib/phoenix-core-4.7.0 -HBase-1.0.jar:/opt/modules/hbase/lib/protobuf-java-2.5.0.jar:/opt/modules/hbase/lib/servlet-api-2.5-6.1.14.jar:/opt/modules/hbase/lib/servlet-api-2.5.jar:/opt/modules/hbase/lib/slf4j-api-1.7.7.jar:/opt/modules/hbase/lib/slf4j-log4j12-1.7.7.jar:/opt/modules / hbase/lib/snappy-java-1.0.4.1.jar:/opt/modules/hbase/lib/xmlenc-0.52.jar:/opt/modules/hbase/lib/xz-1.0.jar:/opt/modules/hbase/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop/contrib/capacity-scheduler/*.jar

/ usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

The red corresponding place should not appear, how can it be such a directory, if it is also the hadoop native directory we specified.

Refer to the following to set up hadoop

Export HADOOP_COMMON_LIB_NATIVE_DIR=$ {HADOOP_HOME} / lib/native

Export HADOOP_OPTS= "- Djava.library.path=$ {HADOOP_HOME} / lib/native/"

And use hadoop checknative to check whether it is correct.

After Ok, restart the hbase, which should start normally at this time, but there is still a problem with mine.

Could not find or load main class .opt.modules.hadoop.lib.native. This is one of my directories. It happens to be the directory of native. Why can't I find it? It turns out that hadoop in my directory uses a soft connection to a real directory, so no, reset HADOOP_HOME to a normal directory, do not use a soft connection, restart and get done.

Thank you for your reading, the above is the "hbase startup tips can not find usr.java.packages.lib.amd64 how to do" the content, after the study of this article, I believe you can not find hbase startup tips usr.java.packages.lib.amd64 how to do this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report