cloudera manager手动安装flink、livy parcel出现哈希验证失败

问题:

最近用cloudera manager 搭建的hadoop大数据处理平台,因为需求要安装livy、flink,然后自己就手动制作了flink 和livy parcel,(网上有很多的教程)这里我遇到的问题是下载parcel出现哈希验证失败:
在这里插入图片描述
一开始总是怀疑是parcel的hash值与parcel.sha的hash值不一样,但是我仔细查看了一下,是没有问题的,这里就按照flink为例:
FLINK-1.10.2-BIN-SCALA_2.12-el7.parcel.sha
在这里插入图片描述
manifest.json
在这里插入图片描述

解决方法

所以排除是hash值导致的,后来查阅资料是发现是httpd服务的问题,在配置文件中需要加上parcel选项,需要修改httpd.conf配置文件,添加parcel。
httpd.conf目录在


```/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

    #

#重启http服务
[root@localhost bigdata]#systemctl restart httpd

然后重新进行下载parcel,发现就可以进行下载了,问题解决,然后载根据教程进行parcel的安装就OK。希望对你有帮助。

猜你喜欢

转载自blog.csdn.net/hyy_blue/article/details/108538182