-
配置java,maven等环境变量
java:
export JAVA_HOME=/usr/local/java export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tool.jar:$CLASSPATH
maven:
export MVN_HOME=/usr/local/maven export PATH=$MVN_HOME/bin:$PATH
-
下载cm_ext
Cloudera提供的cm_ext工具,对生成的csd和parcel进行校验
[root@node01 ~]# mkdir -p ~/github/cloudera [root@node01 ~]# cd ~/github/cloudera [root@node01 cloudera]# git clone https://github.com/cloudera/cm_ext.git [root@node01 cloudera]# cd cm_ext [root@node01 cm_ext]# mvn package
-
下载Elasticsearch安装包
[root@node01 cloudera]# mkdir elasticsearch [root@node01 cloudera]# cd elasticsearch [root@node01 elasticsearch]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.1-linux-x86_64.tar.gz
-
下载制作Parcel包和CSD文件的脚本
[root@node01 cloudera]# git clone https://github.com/ibagomel/elasticsearch-parcel.git
-
制作 Elasticsearch 的Parcel包和CSD文件并校验
[root@node01 cloudera]# cd elasticsearch-parcel [root@node01 elasticsearch-parcel]# POINT_VERSION=5 VALIDATOR_DIR=/root/github/cloudera/cm_ext OS_VER=el7 PARCEL_NAME=ElasticSearch ./build-parcel.sh /root/github/cloudera/elasticsearch/elasticsearch-7.0.1-linux-x86_64.tar.gz ... [root@node01 elasticsearch-parcel]# VALIDATOR_DIR=/root/github/cloudera/cm_ext CSD_NAME=ElasticSearch ./build-csd.sh
-
查看Parcel包和csd文件
[root@node01 elasticsearch-parcel]# ll build-csd/ total 16 -rw-r--r-- 1 root root 5427 May 5 11:44 ELASTICSEARCH-1.0.jar [root@node01 elasticsearch-parcel]# ll build-parcel/ total 338928 drwxr-xr-x 10 root root 4096 May 5 10:18 ELASTICSEARCH-0.0.5.elasticsearch.p0.5/ -rw-r--r-- 1 root root 347041696 May 5 10:18 ELASTICSEARCH-0.0.5.elasticsearch.p0.5-xenial.parcel -rw-r--r-- 1 root root 485 May 5 10:19 manifest.json