Hbase Shell启动失败
发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,最近一个新部署一个gateway,用户在执行hbase shell的方式连接hbase,报错[testuser@ip-192-168-133-238 lib]$ hbase shellSLF4J: C
千家信息网最后更新 2025年11月07日Hbase Shell启动失败
最近一个新部署一个gateway,用户在执行hbase shell的方式连接hbase,报错
[testuser@ip-192-168-133-238 lib]$ hbase shellSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/usr/local/hadoop/hbase-1.1.3/lib/kylin-jdbc-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/usr/local/hadoop/hbase-1.1.3/lib/kylin-job-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/usr/local/hadoop/hbase-1.1.3/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-2.7.1/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See 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
经过百度,解决问题。是由于testuesr对hbase.tmp.dir设置的路径,没有读写权限。添加权限即可。(实际上是我根本就没有创建这个路径。由于是gateway,只是利用一下hbase的软件和配置文件作为客户端。也不启动它。自然也就没有想到这些路径还会影响到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!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See 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/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 RESOLUTION: Ensure the users of hbase shell have read and write permissions for hbase.tmp.dir hbase.tmp.dir /tmp/hbase-${user.name}
参考链接:
https://community.hortonworks.com/content/supportkb/150642/unable-to-start-hbase-shell-due-to-javaioioexcepti.html
路径
权限
只是
实际
实际上
客户
客户端
文件
方式
根本
用户
自然
软件
链接
问题
参考
影响
配置
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
魔兽世界返回服务器列表
朱琳娜郑州网络技术有限公司
网络安全专业求职信
姜堰区环保网络技术诚信服务
软件开发合同问题案例分析
学生网络安全教育的措施
通信与广电网络技术工程师
数据库监控工具
新乡市荣耀网络技术
网络技术四级考试
红蓝对抗网络安全洪雅
数据库orderby
数据库系统的多级报告
1.12服务器生存技巧
数据库第三方连不上
程序员删除数据库视频
艺叮点网络技术公司
监控数据库中间件运行情况
工控数据库怎么解决安全
去美国学软件开发
手机游戏的服务器是怎么样的
天台定制软件开发生产过程
37岁学软件开发
中南大学数据库慕课答案
学校网络安全教育的重要性
网络安全讲座宣传文案
贞丰县网络技术学校
手机网络技术是哪代
重庆七腾软件开发有限公司
刀片服务器是什么样的