- Abstract: In fact, cloudera has already done this, but it just separated the Kafka package from the CDH parcel package, we can achieve perfect integration by downloading the service description jar package and service parcel package of the separated Kafka. For detailed implementation steps, refer to the documentation on the cloudera Website: Workshop. Ka
- Preface
In fact, cloudera has already done this, but separated the Kafka package from the CDH parcel package, we can achieve perfect integration by downloading the service description jar package and service parcel package of the separated Kafka.
The specific implementation of the brief steps can refer to the cloudera official website of documents: http://www.cloudera.com/content/www/en-us/documentation/kafka/latest/topics/kafka_installing.html,
The following is the integration process based on this document.
Kafka-related package preparation
CSD: http://archive.cloudera.com/csds/kafka/
Parcel package: http://archive.cloudera.com/kafka/parcels/latest/ (downloaded based on the system version of your cluster)
I'm using centos6.5 x64 system, so I downloaded the parcel package for the KAFKA-0.8.2.0-1.kafka1.3.2.p0.56-el6.parcel with the KAFKA-0.8.2.0-1.kafka1.3.2.p0.56-el6.parcel.sha1
Integration implementation
-
Disable the cluster and CM service. (If the CM service is not disabled, the service description cannot be found when the Kafka service is added)
-
Place the CSD package in the/opt/cloudera/CSD directory under the CM installation node ,:
- Put the parcel package in the/opt/cloudera/parcel-repo directory of the CM installation node ,:
- Start CM service, allocate and activate the Percel package
- Add the Kafka service:
- Start the service
1. Download the parcel packages of Kafka and spark2 (which can be obtained from the td cdh package) and place them in the parcel repository directory of cloudera Manager (log on to the CM console to set parcel configuration)
2. You can manually rename the previously renamed file. For example, you can back up the previous JSON file in mainifest. JSON and rename it,
3. Restart the cloudera server and agent services.
- /Opt/cm-5.12.1/etc/init. d/cloudera-SCM-server restart
- /Opt/cm-5.12.1/etc/init. d/cloudera-SCM-Agent restart (Agent Server)
4. During Kafka installation, if the startup fails, you must change the default Java heap size (50 MB by default) to 512.
5. Install Kafka separately for the passenger flow operation platform (the second zookeeper cluster is required first)
6. Restart the Kafka service and check its status.
Install Kafka using CDH