打开虚拟机直接开干
图片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
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
网友评论