当前位置:网站首页>Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state

Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state

2022-06-27 06:35:00 Ah Yi's preserved vegetables

Source of problem :

         It's going on spark During tool installation , The error shown in the header when extracting the installation package , The order is as follows

sudo tar -zxvf ~/Downloads/spark-2.4.0-bin-without-hadoop.tgz /usr/local/ 

resolvent :

         The reason for this error is that a parameter is not used in the command -C, Here, you need to switch the unzipped file to the specified folder after unzipping , That is, it is not extracted under the current folder , Instead, you need to unzip in another folder to perform the unzip operation , So we need to add -C Parameters . The correct command format is as follows

sudo tar -zxvf ~/Downloads/spark-2.4.0-bin-without-hadoop.tgz -C /usr/local/

原网站

版权声明
本文为[Ah Yi's preserved vegetables]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270607538148.html