Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27635

Shutdown zookeeper logs coming via ReadOnlyZKClient when hbase shell started

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • 3.0.0-beta-2, 2.6.1, 2.5.9
    • shell
    • None

    Description

      When hbase shell with HBase 2.5.2 started there is too much logging of zk connection realated, classpaths etc.  Even though we enabled ERROR log level for zookeeper package.

      2023-02-10 17:34:25,211 INFO  [ReadOnlyZKClient-host1:2181,host2:2181,host3:2181@0x15c16f19] zookeeper.ZooKeeper: Client environment:zookeeper.version=3.5.9-5-a433770fc7b303332f10174221799495a26bbca2, built on 02/07/2023 13:02 GMT
      2023-02-10 17:34:25,212 INFO  [ReadOnlyZKClient-host1:2181,host2:2181,host3:2181@0x15c16f19] zookeeper.ZooKeeper: Client environment:host.name=host1
      2023-02-10 17:34:25,212 INFO  [ReadOnlyZKClient-host1:2181,host2:2181,host3:2181:2181@0x15c16f19] zookeeper.ZooKeeper: Client environment:java.version=1.8.0_352
      2023-02-10 17:34:25,212 INFO  [ReadOnlyZKClient-host1:2181,host2:2181,host3:2181@0x15c16f19] zookeeper.ZooKeeper: Client environment:java.vendor=Red Hat, Inc.
      2023-02-10 17:34:25,212 INFO  [ReadOnlyZKClient-host1:2181,host2:2181,host3:2181@0x15c16f19] zookeeper.ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7_9.x86_64/jre
      
      

      Better to change the  org.apache.hadoop.hbase.zookeeper package log level to error.

      # Set logging level to avoid verboseness
      org.apache.logging.log4j.core.config.Configurator.setAllLevels('org.apache.zookeeper', log_level)
      org.apache.logging.log4j.core.config.Configurator.setAllLevels('org.apache.hadoop', log_level)
      
      org.apache.logging.log4j.core.config.Configurator.setAllLevels('org.apache.hadoop.hbase.zookeeper', log_level)
      
      

      Attachments

        Activity

          People

            rajeshbabu Rajeshbabu Chintaguntla
            rajeshbabu Rajeshbabu Chintaguntla
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: