java -version
JAVA_HOME
environment variable and point it to the Java installation directory on your machine. Supported Operating Systems | Output |
Windows | Set the environment variable JAVA_HOME to C:\\Program Files\\Java\\jdkjdk1.8.0_20 |
Linux | export JAVA_HOME=/usr/local/java-current |
Mac OSX | export JAVA_HOME=/Library/Java/Home |
Supported Operating Systems | Output |
Windows | Add ;C:\\Program Files\\Java\\jdk1.8.0_20\\bin to the end of the system variable Path |
Linux | export PATH=$PATH:$JAVA_HOME/bin/ |
Mac OSX | not required |
java -version
command to check your Java installation../bin
directory, and produce and consume a message via CLI commands.bash kafka-console-consumer.sh --bootstrap-server XXXX:port --topic XXXX --consumer.config ../config/consumer.properties
XXXX:port
with the domain name and port for VPC access, which can be obtained in the Access Mode section on the Instance Details page in the console.XXXX
with the topic name, which can be obtained on the Topic Management page in the console.bash kafka-console-producer.sh --broker-list XXXX:port --topic XXXX --producer.config ../config/producer.properties
XXXX:port
with the domain name and port for VPC access, which can be obtained in the Access Mode section on the Instance Details page in the console.XXXX
with the topic name, which can be obtained on the Topic Management page in the console.
Was this page helpful?