将hadoop-2.7.3.tar.gz转移到tmp目录下,然后解压到/usr/local目录下:
- tar -zxvf hadoop-2.7.3.tar.gz -C /usr/local/
试着用tar命令来创建一个压缩文件时,总在执行过程中失败,并且抛出一个错误说明"tar:由于前一个错误导致于失败状态中退出"("Exiting with failure status due to previous errors").
如果遇到上图的错误,那么最有可能的原因是对于你想用tar命令压缩的某个文件过程中,并不具备其读权限,因此可尝试使用root权限。
在切换了root账号之后,果然成功了!