虽然有时下载的linux压缩包的后缀名为.tar等,但是后缀名有时并不能代表实际的压缩格式。
在解压缩hadoop eclipse支撑包hadoop-eclipse-plugin-1.0.0_V5.时报错:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
执行: file ./下载/hadoop-eclipse-plugin-1.0.0_V5. 查看文件具体压缩格式
提示:./hadoop-eclipse-plugin-1.0.0_V5.: Zip archive data, at least v1.0 to extract
也就是说该文件的压缩格式是.zip格式,应该用unzip解压。