


Then I think it's the problem of installing the package , Because in tar zxvf An archive error occurred after the command , So I made another version There are no archiving errors however
still yes hadoop version
----------Hadoop The order did not
Operation results and error reporting contents

Please
Show me [email protected] It's my mailbox
source I'll revise it profile, If not, go hadoop Of bin Permission to view files in the directory ls -l see bin Whether the following files have execution permission x

HADOOP_HOME It didn't say $ Symbols , The system can't find your hadoop Location , add $ again source The configuration file , Trying again ,
If useful , Hope to adopt
Answer as above ,HADOOP_HOME The variable is missing $

At the same time, for you hadoop I have a few suggestions , What you said is wrong. Please give me more advice .
- Do not install components in home Under the table of contents
- Environment variable configuration problem , There are many configurations of environment variables in big data components , Need to have the same specification , In order to manage . As you can see from your command line , You repeated it twice export HADOOP_HOME
- See your side or use jdk7 as well as hadoop2.7, I don't know whether it's the version used by your company or the version used by yourself , If it is used by the company, it is understandable . If it's self-study , I suggest you use jdk8 as well as hadoop3 Related technology stack .
- Last , I have also done the configuration and installation of relevant components , If you find it useful , You can refer to it :
hdfs Cluster installation ( single namenode and HA Pattern )_ Blogs from big data to artificial intelligence -CSDN Blog
single namenode Node preparation file download :jdk-8u241-linux-x64.tar.gzhadoop-3.2.0.tar.gz Node arrangement :hadoop1 → From the node hadoop2 → The master node first ensures that hadoop1 Can log in without secret hadoop1 as well as hadoop2 Download the file to /data Under the table of contents , And extract the 、 Establish a soft connection , The final status is as follows : Modify the configuration hadoop Related configuration changes core-site.xml<configuration><property>
https://lrting-top.blog.csdn.net/article/details/120424314