On this page
Help Center/ MapReduce Service/ Troubleshooting/ Using HDFS/ An Error Is Reported When the HDFS Client Is Connected Through a Public IP Address

An Error Is Reported When the HDFS Client Is Connected Through a Public IP Address

Updated on 2024-12-18 GMT+08:00

Symptom

If the host is connected using a public IP address, its HDFS client cannot be used. After the hdfs command is executed, message "-bash: hdfs: command not found" is displayed.

Cause Analysis

The environment variables are not set before the user logs in to the Master node and runs the command.

Procedure

  1. Log in to any master node as user root.
  2. Run the source Client installation directory/bigdata_env command to set environment variables.
  3. Run the hdfs command to use the HDFS client.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback