Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@ ENV/

# Vagrant
.vagrant/

#mac os DS_Store
.DS_Store
6 changes: 3 additions & 3 deletions examples/wordcount/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ services:
- kafka
kafka:
image: "spotify/kafka"
hostname: kafka
hostname: localhost
ports:
- 2181:2181
- 9092:9092
- 7203:7203
environment:
- JMX_PORT=7203
- ADVERTISED_HOST=kafka
- ADVERTISED_HOST=localhost
- ADVERTISED_PORT=9092
kafka-manager:
image: "sheepkiller/kafka-manager"
ports:
- 9000:9000
environment:
- ZK_HOSTS=kafka:2181
- ZK_HOSTS=localhost:2181
- APPLICATION_SECRET=letmein
kafka-debug:
build:
Expand Down
5 changes: 3 additions & 2 deletions examples/wordcount/docker/kafka-debug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ ENV SCALA_VERSION 2.11
ENV KAFKA_VERSION 0.10.1.0
ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"


# Install Kafka and other needed things
RUN apt-get update && \
apt-get install -y wget dnsutils && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
wget -q http://archive.apache.org/dist/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt && \
rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz


CMD ["/opt/kafka_2.11-0.10.1.0/bin/kafka-console-consumer.sh","--bootstrap-server","kafka:9092","--topic","wks-wordcount-example-count","--from-beginning","--property","print.key=true"]
CMD ["$KAFKA_HOME/bin/kafka-console-consumer.sh","--bootstrap-server","localhost:9092","--topic","wks-wordcount-example-count","--from-beginning","--property","print.key=true"]