我要评分
获取效率
正确性
完整性
易理解

Running and Verifying Kafka

  1. Run the following commands on agent1 to agent3 to start Kafka:
    1
    2
    cd /usr/local/kafka/bin
    ./kafka-server-start.sh -daemon ../config/server.properties
    
  2. Run the following command on each node to check whether all processes are started properly.
    1
    jps
    

    Processes started on agent1 are the same as those on other agent nodes. No process needs to be started on server nodes.

  3. Run the following commands on agent1 to agent3 to stop Kafka:
    1
    2
    cd /usr/local/kafka/bin
    ./kafka-server-stop.sh