Skip to content

Instantly share code, notes, and snippets.

@russau
Last active May 8, 2020 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russau/d5fd3f4119830c4d045f8305a4bfe6b2 to your computer and use it in GitHub Desktop.
Save russau/d5fd3f4119830c4d045f8305a4bfe6b2 to your computer and use it in GitHub Desktop.
  • 52.41.18.116 -> 10.0.1.100
  • 54.68.20.222 -> 10.0.1.200
echo 'export KAFKA_HEAP_OPTS="-Xmx1000M"' >> ~/.bashrc
wget --content-disposition https://downloads.apache.org/kafka/2.5.0/kafka_2.12-2.5.0.tgz
tar -xzf kafka_2.12-2.5.0.tgz
sudo apt update
sudo apt-get install openjdk-11-jdk-headless
cd kafka_2.12-2.5.0/
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
bin/kafka-server-start.sh -daemon config/server.properties

clean up

bin/kafka-server-stop.sh
bin/zookeeper-server-stop.sh

configs

advertised.listeners=PLAINTEXT://ec2-52-41-18-116.us-west-2.compute.amazonaws.com:9092
kafkacat -L -b 52.41.18.116:9092
kafkacat -L -b 54.68.20.222:9092 

listeners=LARRY://:9092,MOE://:9093
advertised.listeners=LARRY://10.0.1.100:9092,MOE://internal-replication:9093
inter.broker.listener.name=LARRY
listener.security.protocol.map=LARRY:PLAINTEXT,MOE:PLAINTEXT
@HausCloud
Copy link

Hi random person from the internet here. I saw your post on setting up an AWS Beanstalk environment with https. I'm looking at your implementation, but am having a bit trouble using it.

@russau
Copy link
Author

russau commented May 8, 2020

Hi @HausCloud - if you create an issue inside the repo we can chat there. Beanstalk debugging does mean a lot of SSH into the server and pulling down log file to see where it went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment