Help Center/ MapReduce Service/ Troubleshooting/ Using HDFS/ Adjusting the Log Level of the Shell Client
Updated on 2023-01-11 GMT+08:00

Adjusting the Log Level of the Shell Client

  • Temporary adjustment: After the Shell client window is closed, the log is restored to the default value.
    1. Run the export HADOOP_ROOT_LOGGER command to adjust the log level of the client.
    2. Run the export HADOOP_ROOT_LOGGER=log level,console command to adjust the log level of the Shell client.

      Run the export HADOOP_ROOT_LOGGER=DEBUG,console command to adjust the log level to Debug.

      Run the export HADOOP_ROOT_LOGGER=ERROR,console command to adjust the log level to Error.

  • Permanent adjustment
    1. Add export HADOOP_ROOT_LOGGER=Log level,console to the HDFS client's environment variable configuration file /opt/client/HDFS/component_env (replace /opt/client with the actual client path).
    2. Run the source /opt/client/bigdata_env command.
    3. Run the command on the client again.