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

Failed to start Hbase Shell

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Recently, a new gateway has been deployed. Users connect to hbase in the way of executing hbase shell and report an error.

[testuser@ip-192-168133-238 lib] $hbase shellSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [Found binding in] SLF4J: Found binding in [JarJV fileGear] Found binding in [JarJV fileGear] LBG [JarJV fileGundle] LIBG [JarJV fileGundle] LIBG / StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hadoop/hbase-1.1.3/lib/slf4j-log4j12-1.7.5.jar http://www. http://www. slf4j implant http://www.] SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-2.7.1/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jarbank http://www.] SLF4J: jarring http://www. Slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] NativeException: java.io.IOException: java.lang.reflect.InvocationTargetException initialize at / usr/local/hadoop/hbase-release/lib/ruby/hbase/hbase.rb:42 (root) at / usr/local/hadoop/hbase-release/bin/hirb.rb:118

After Baidu, solve the problem. This is due to the path set by testuesr to hbase.tmp.dir and does not have read and write permissions. Just add permissions. (actually, I didn't create this path at all. Since it is gateway, I just take advantage of hbase's software and configuration files as clients. And don't start it. Naturally, I didn't expect that these paths would also affect the use of hbase shell. )

Unable to start hbase shell due to java.io.IOException: java.lang.reflect.InvocationTargetException SYMPTOM: When attempting to execute "hbase shell" as a non-root / non-hbase user, hbase shell fails with the following exception: [jyoung@jyoung-hdp234-1 ~] $hbase shell SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/hadoop/lib/slf4j-log4j12-1.7.10.jar http://www.slf4j.org/codes.html#multiple_bindings for an explanation] SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/zookeeper/lib/slf4j-log4j12-1.6.1.jar http://www.slf4j.org/codes.html#multiple_bindings for an explanation] SLF4J: See Logger Binder.class. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] NativeException: java.io.IOException: java.lang.reflect.InvocationTargetException initialize at / usr/hdp/2.3.4.0-3485/hbase/lib/ruby/hbase/hbase.rb:42 (root) at / usr/hdp/2.3.4.0-3485/hbase/bin/hirb.rb:131 ROOT CAUSE: The user of hbase shell needs read and write permissions on the hbase tmp directory configured by the hbase.tmp.dir property in hbase-site.xml. To verify your hbase tmp directory configuration settings: [root@jyoung-hdp234-1 ~] # grep-C2 "hbase.tmp.dir" / etc/hbase/conf/hbase-site.xml hbase.local.dir ${hbase.tmp.dir} / local-- hbase.tmp.dir / tmp/hbase-$ {user.name} RESOLUTION: Ensure the users of hbase shell have read and write permissions for hbase.tmp.dir

Reference link:

Https://community.hortonworks.com/content/supportkb/150642/unable-to-start-hbase-shell-due-to-javaioioexcepti.html

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

Database

Wechat

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

12
Report