Help Center/ MapReduce Service/ Troubleshooting/ Using Yarn/ An Error Is Reported When a Yarn Client Command Is Used to Query Historical Jobs
Updated on 2023-11-30 GMT+08:00

An Error Is Reported When a Yarn Client Command Is Used to Query Historical Jobs

Symptom

When a Yarn client command is executed to query historical jobs, the following error is reported and the process is terminated.

Cause Analysis

The memory allocated to the client is insufficient. As a result, an error is reported when the command is submitted.

Procedure

  1. Log in to the node where the HDFS client is installed as user root.
  2. Run the following command to edit the file:

    vim /opt/client/HDFS/component_env

  3. Increase the value of export GC_OPTS_HDFS, for example, to Xmx512m.
  4. Save the file.
  5. Run the following command to reload the environment variables:

    source bigdata_env