HBase Shell Logging

When using the HBase shell, I get a large number of protocols, including INFO and DEBUG messages. Although this is interesting from the point of view of studying the internal components of HBase, it is quite verbose and can dig a result.

I tried to change the logging levels in several ways, including as described here , and although some of the warnings disappear, I continue to receive a large number of INFO and DEBUG messages, that is:

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 

Besides $ HBASE_HOME / conf / log4j.properties, I tried to run the shell outside the shell of $ HBASE_HOME / bin / hbase - script. Even setting log4j.rootLogger = OFF does not help. Trying to use Logger.getRootLogger().setLevel(Level.WARN); The link above also didn't work.

Are these messages emitted by the JRuby registrar? Will they return as text to the shell using other components?

+6
source share
1 answer

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

0
source

Source: https://habr.com/ru/post/976885/


All Articles