1: cd ~
2: wget http://packages.confluent.io/archive/4.1/confluent-oss-4.1.1-2.11.tar.gz
3: tar -zxvf confluent-oss-4.1.1-2.11.tar.gz -C /app/svr
4: vi /app/svr/confluent-4.1.1/bin/kafka-rest-start # add KAFKAREST_OPTS before exec
export KAFKAREST_OPTS=" -Djava.security.auth.login.config=/app/svr/confluent-4.1.1/etc/kafka-rest/kafka_admin_jaas.conf"
5:vi /app/svr/confluent-4.1.1/etc/kafka-rest/kafka_admin_jaas.conf
KafkaClient {
org.apache.kafka.common.security.plain.PlainLoginModule required
username=alice
password=alice-changeme;
};
6: vi /app/svr/confluent-4.1.1/etc/kafka-rest/kafka-rest.properties
bootstrap.servers=SASL_PLAINTEXT://cent2.steven:9092,SASL_PLAINTEXT://cent3.steven:9092,SASL_PLAINTEXT://cent4.steven:9092
client.security.protocol=SASL_PLAINTEXT
client.sasl.mechanism=PLAIN