美文网首页
cloudearmanager扩展cdh parcel之flum

cloudearmanager扩展cdh parcel之flum

作者: 阿文很淘气 | 来源:发表于2020-04-23 10:43 被阅读0次

    打开虚拟机直接开干


    图片1.png 图片2.png

    flume_env.sh

    #!/bin/bash
    
    FLUME_DIRNAME=${PARCEL_DIRNAME:-"FLUME-1.9"}
    
    export CDH_FLUME_HOME=$PARCELS_ROOT/$FLUME_DIRNAME/flume-1.9-bin
    export JAVA_HOME=/root/jdk1.8/jdk1.8.0_162
    
    

    parcel.json

    {
        "schema_version": 1,
        "name": "FLUME",
        "version": "1.9",
        "setActiveSymlink": true,
        "conflicts": "",
        "provides": ["FLUME"],
        "scripts": {
            "defines": "flume_env.sh"
        },
        "packages": [{
            "name": "flume",
            "version": "1.9"
        }],
    
        "components": [{
            "name": "flume",
            "version": "1.9",
            "pkg_version": "1.9",
            "pkg_release": "1.9"
        }],
        "users": {},
        "groups": []
    }
    

    yum install -y tree

    图片3.png

    在flume-.1.9.-bin目录放入 官方flume绿色解压版后的所有文件即可

    mkdir parcel-el7

    打包
    tar czvf FLUME-1.9-el7.parcel FLUME-1.9 --owner=root --group=root

    图片4.png

    mv FLUME-1.9-el7.parcel parcel-el7
    生成manifest.json
    下载安装 CM 扩展工具

    https://github.com/cloudera/cm_ext

    python cm_ext-master/make_manifest/make_manifest.py parcel-el7

    解压后


    图片5.png

    生成.sha


    图片6.png

    相关文章

      网友评论

          本文标题:cloudearmanager扩展cdh parcel之flum

          本文链接:https://www.haomeiwen.com/subject/avroihtx.html