HBase Shell日志记录 [英] HBase Shell Logging

查看:443
本文介绍了HBase Shell日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用HBase shell时,我得到了大量的日志记录,包括INFO和DEBUG消息.尽管这对于学习HBase的内部知识很有趣,但它很冗长,可以掩盖输出.

When using the HBase shell, I'm getting a great deal of logging, including INFO and DEBUG messages. While this is interesting in terms of learning HBase internals, it is quite verbose and can bury the output.

我尝试以多种不同方式更改日志记录级别,包括

I've tried changing the logging levels in a number of different ways, including as described here, and while some of the warnings do disappear, I continue to get a large number of INFO and DEBUG messages, i.e.:

18:50:49.500 [main] INFO  org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
18:50:49.516 [main] INFO  org.apache.zookeeper.ZooKeeper - Client environment:host.name=ip-10-234-8-223.ec2.internal
18:50:49.517 [main] INFO  org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.7.0_65
18:50:49.517 [main] INFO  org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation

除了$ HBASE_HOME/conf/log4j.properties,我还尝试在$ HBASE_HOME/bin/hbase shell脚本之外运行该shell.即使设置log4j.rootLogger = OFF似乎也无济于事.根据上述链接,尝试使用Logger.getRootLogger().setLevel(Level.WARN);也不起作用.

Besides $HBASE_HOME/conf/log4j.properties, I've tried running the shell outside the $HBASE_HOME/bin/hbase shell-script. Even setting log4j.rootLogger=OFF doesn't seem to help. Attempting to use Logger.getRootLogger().setLevel(Level.WARN);, per the above link, did not work either.

这些消息是否由JRuby记录器发出?它们是否被其他组件作为文本返回到外壳?

Are these messages being emitted by a JRuby logger? Are they returned as text to the shell by other components?

推荐答案

在"hbase/conf/"文件夹中的"log4j.properties"文件中编辑和调整日志级别.

Edit and adjust the log levels in "log4j.properties" file which is in "hbase/conf/" folder.

这篇关于HBase Shell日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆