An Error Is Reported When the HDFS Client Is Used After the Host Is Connected Using a Public Network IP Address
Issue
When the host is connected using a public network IP address, the HDFS client cannot be used and the message "-bash: hdfs: command not found" is displayed when the HDFS is running.
Symptom
When the host is connected using a public network IP address, the HDFS client cannot be used and the message "-bash: hdfs: command not found" is displayed when the HDFS is running.
Possible Causes
The environment variables are not set before the user logs in to the Master node and runs the command.
Procedure
- Log in to any Master node as user root.
- Run the source /opt/client/bigdata_env command to configure environment variables.
- Run the hdfs command to use the HDFS client.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot