java tmpdir 启动 kafka 命令行


java -jar -Djava.io.tmpdir=/data/cnbmtech-pro/temp -XX:+PrintGCDetails -Xmx8096M -Xms1024M apigateway-ai-2.3.jar &

 

/kafka-topics.sh -zookeeper 10.35.2.83:2181 --create --topic alarm --partitions 1 --replication-factor 1


admin@zal-virtual-machine:/opt/software/kafka_2.12-2.0.1$ bin/kafka-console-consumer.sh --bootstrap-server 10.35.2.83:9092 --topic alarm

admin@zal-virtual-machine:/opt/software/kafka_2.12-2.0.1$ ./bin/kafka-console-producer.sh --topic alarm --broker-list 10.35.2.83:9092

posted @ 2020-06-12 15:49  星回中道  阅读(231)  评论(0编辑  收藏  举报