壓縮包是直接weget 后面加官網上的tar包地址獲取的
[root@xuegod43 ~]# tar -zxvf /home/hadoop/hadoop-2.6.5-src.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[root@xuegod43 ~]# tar -xvf /home/hadoop/hadoop-2.6.5-src.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[root@xuegod43 ~]# tar -xvf /home/hadoop/hadoop-2.6.5-src.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
看文件真正的屬性,竟然是HTML
[root@xuegod43 ~]# file /home/hadoop/hadoop-2.6.5-src.tar.gz
/home/hadoop/hadoop-2.6.5-src.tar.gz: HTML document text
文件的下載鏈接不是直接指向文件,而是先指向一個頁面,在這個頁面里才是真的下載鏈接,所以在前一個頁面上直接保存文件,實際上保存的是一個頁面。
假如屬性是bz文件,就用bz文件的解壓方式。
重新獲取tar包路徑,先用瀏覽器打開,從彈出來的save 對話框里獲取下載鏈接
重新上傳壓縮包解壓OK