Help Center> MapReduce Service> Troubleshooting> Using HBase> Disordered Information Display on the HBase Shell Client Console Due to Printing of the INFO Information
Updated on 2023-11-30 GMT+08:00

Disordered Information Display on the HBase Shell Client Console Due to Printing of the INFO Information

Issue

When the HBase shell is used, INFO information is printed on the console, causing disordered information display. Before entering a command, the user has to press Enter to clean the console. The following figure provides an example.

Cause Analysis

  • By default, the log printing function of the HBase client is set to INFO,console. Therefore, INFO logs will be printed to the console, affecting the information display on the HBase shell console.
  • The HBase client supports many commands, such as hbase shell, hbase hbck, and hbase org.apache.hadoop.hbase.mapreduce.RowCounter, and will support more in the future. The output type of some commands is INFO. If INFO is disabled, the output of these commands will be lost. For example, the output of RowCounter is of the INFO type.

Procedure

  1. Log in to the node where the HBase client is installed as user root.
  2. Add the following information to the HBase client installation directory/HBase/component_env file:

    export HBASE_ROOT_LOGGER=INFO,RFA

    Logs are exported to log files. If you run the hbase org.apache.hadoop.hbase.mapreduce.RowCounter command, you can view the execution result in the HBase client installation directory/HBase/hbase/logs/hbase.log file.

  3. Switch to the HBase client installation directory and run the following commands for the configuration to take effect:

    cd HBase client installation directory

    source HBase/component_env