HbaseShell启动失败-创新互联
最近一个新部署一个gateway,用户在执行hbase shell的方式连接hbase,报错
站在用户的角度思考问题,与客户深入沟通,找到神池网站设计与神池网站推广的解决方案,凭借多年的经验,让设计与互联网技术结合,创造个性化、用户体验好的作品,建站类型包括:网站建设、成都网站制作、企业官网、英文网站、手机端网站、网站推广、空间域名、网页空间、企业邮箱。业务覆盖神池地区。[testuser@ip-192-168-133-238 lib]$ hbase shell SLF4J: 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
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
当前标题:HbaseShell启动失败-创新互联
分享URL:http://pwwzsj.com/article/ghohj.html