CDH6 installation and deployment of ES services

1. Make ES parcel package and csd file

Reference: https://blog.csdn.net/weixin_38023225/article/details/106467548

2. Copy ELASTICSEARCH-1.0.jar under build-csd to /opt/cloudera/csd

]# cp /root/github/cloudera/elasticsearch-parcel/build-csd/ELASTICSEARCH-1.0.jar /opt/cloudera/csd

3. Deploy the Parcel package and manifest.json file to the httpd service

]# mkdir -p /var/www/html/elasticsearch
]# cd /var/www/html/elasticsearch
]# cp /root/github/cloudera/elasticsearch-parcel/build-parcel/ELASTICSEARCH-0.0.5.elasticsearch.p0.5-el7.parcel ./
]# cp /root/github/cloudera/elasticsearch-parcel/build-parcel/manifest.json ./
elasticsearch]# ll
总用量 289848
-rwxrwxrwx. 1 nginx root 296798510 6月   1 11:21 ELASTICSEARCH-0.0.5.elasticsearch.p0.5-el7.parcel
-rwxrwxrwx. 1 nginx root       482 6月   1 11:22 manifest.json

4. Empower CM users

]# cd /opt/cloudera/csd 
]# chown -R cloudera-scm:cloudera-scm ./*
]# cd /opt/cloudera/parcel-repo
]# chown -R cloudera-scm:cloudera-scm ./*

 5. The CM web page restarts the service

6. Host-parcel-configuration add remote Parcel repository URL

7. Check the new parcel and find ELASTICSEARCH to download, distribute and activate

Already clicked Download->Assign->Activate

8. Restart cm to add services

 

question:

ELASTICSEARCH (0.0.5.elasticsearch.p0.5) requires CDH (less than 6.0) Parcel not available.

 

Cause Analysis:

The original configuration of parcel-src/meta/parcel.json is: "depends": "CDH (>= 5.0), CDH (<< 6.0)",

The original configuration of csd-src/descriptor/service.sdl is as follows:

Solution: Modify the configuration file elasticsearch version settings

Under elasticsearch-parcel
     4.1:parcel-src/meta/parcel.json >>>> Change to: "depends": "CDH (>= 5.0), CDH (<< 10.0)", 4.2:
     csd-src/descriptor/ service.sdl >>>> Change to: "cdhVersion": {                                                             "min": 6                                                     }

Guess you like

Origin blog.csdn.net/weixin_38023225/article/details/106468391
Recommended