gpt4 book ai didi

shell - HBase shell 日志记录

转载 作者:行者123 更新时间:2023-12-04 16:09:14 30 4
gpt4 key购买 nike

使用 HBase shell 时,我得到了大量日志记录,包括 INFO 和 DEBUG 消息。虽然这在学习 HBase 内部结构方面很有趣,但它非常冗长并且可能会隐藏输出。

我尝试以多种不同的方式更改日志记录级别,包括如 here 所述,虽然一些警告确实消失了,但我继续收到大量 INFO 和 DEBUG 消息,即:

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-script 之外运行 shell。即使设置 log4j.rootLogger=OFF 似乎也无济于事。正在尝试使用 Logger.getRootLogger().setLevel(Level.WARN); ,根据上面的链接,也不起作用。

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

最佳答案

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

关于shell - HBase shell 日志记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26431746/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com