Install Kafka using CDH

Source: Internet
Author: User
  • 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
    1. 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)

    2. Place the CSD package in the/opt/cloudera/CSD directory under the CM installation node ,:

    3. Put the parcel package in the/opt/cloudera/parcel-repo directory of the CM installation node ,:
    4. Start CM service, allocate and activate the Percel package
    5. Add the Kafka service:
    6. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.