1. Decompress the hadoop-3.1.3.tar. gz file

Sudo tar -zxf ~/Download/hadoop-3.1.3.tar.gz -c /usr/local # Decompress to /usr/local CD /usr/local/ sudo mv./ hadoop-3.1.3. /hadoop Hadoop sudo chown -r zhzuoch./ HadoopCopy the code

Note: *x: extract files from tar;

* z: indicates that the tar package is compressed by gzip. Therefore, use gunzip to decompress the tar package.

* f: indicates that the file is followed.

* C: The file is decompressed to a specified directory.