cdh 6哈希驗證失敗解決方法

當安裝cdh 6,使用本地搭建的parcel時,出現了哈希驗證失敗的問題:
哈希驗證失敗
查看了parcel的sha值,與官網的一致,沒有問題:

#parcel sha值
[root@localhost bigdata]# sha1sum CDH-6.0.0-1.cdh6.0.0.p0.537114-el7.parcel
de86cc42380f073f4906801913d7083b39e46db7  CDH-6.0.0-1.cdh6.0.0.p0.537114-el7.parcel

#sha文件裏的值
[root@localhost bigdata]# cat CDH-6.0.0-1.cdh6.0.0.p0.537114-el7.parcel.sha
de86cc42380f073f4906801913d7083b39e46db7

說明哈希值是正確的,不是包發生錯誤獲取sha值寫的不對。
後查找相關資料,發現是httpd服務的問題,在配置文件中需要加上parcel選項

[root@localhost bigdata]# vim /etc/httpd/conf/httpd.conf

#在<IfModule mime_module>模塊添加 parcel選項

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz .parcel #此處添加.parcel

    #

最終成功安裝:
安裝成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章