HDFS Operate hadoop Error: Command not Found [How to Solve]

1. sudo vim /etc/profile

sudo into the profile file



export JAVA_HOME=/usr/lib/jvm/jdk-1.8.0_212
export HADOOP_HOME=usr/local/hadoop

Add the above three to the end of the profile file

Press i to edit first, press Esc after writing, then: wq save and exit


3.source /etc/profile

Update environment variables


This problem can be solved by the above three steps

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *