Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Kafka to 0.10.2.0 and bump java+scala to latest #23

Closed
wants to merge 6 commits into from
Closed
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Alternatively create [PV](http://kubernetes.io/docs/user-guide/persistent-volume

```
./bootstrap/pv.sh
kubectl create -f ./bootstrap/pvc.yml
kubectl create -f ./10pvc.yml
# check that claims are bound
kubectl get pvc
kubectl -n kafka get pvc
```

## Set up Zookeeper
Expand Down Expand Up @@ -49,7 +49,7 @@ kubectl create -f ./

You might want to verify in logs that Kafka found its own DNS name(s) correctly. Look for records like:
```
kubectl logs kafka-0 | grep "Registered broker"
kubectl -n kafka logs kafka-0 | grep "Registered broker"
# INFO Registered broker 0 at path /brokers/ids/0 with addresses: PLAINTEXT -> EndPoint(kafka-0.broker.kafka.svc.cluster.local,9092,PLAINTEXT)
```

Expand Down Expand Up @@ -79,5 +79,5 @@ kubectl create -f test/21consumer-test1.yml
Testing and retesting... delete the namespace. PVs are outside namespaces so delete them too.
```
kubectl delete namespace kafka
rm -R ./data/ && kubectl delete pv datadir-kafka-0 datadir-kafka-1 datadir-kafka-2
rm -R ./data/ && kubectl -n kafka delete pv datadir-kafka-0 datadir-kafka-1 datadir-kafka-2
```
6 changes: 3 additions & 3 deletions bootstrap/pv-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 100Mi
storage: 200Gi
hostPath:
path: /tmp/k8s-data/datadir-kafka-0
---
Expand All @@ -25,7 +25,7 @@ spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 100Mi
storage: 200Gi
hostPath:
path: /tmp/k8s-data/datadir-kafka-1
---
Expand All @@ -40,6 +40,6 @@ spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 100Mi
storage: 200Gi
hostPath:
path: /tmp/k8s-data/datadir-kafka-2
2 changes: 1 addition & 1 deletion bootstrap/pv.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

echo "Note that in for example GKE a PetSet will have PersistentVolume(s) and PersistentVolumeClaim(s) created for it automatically"
echo "Note that in for example GKE a StatefulSet will have PersistentVolume(s) and PersistentVolumeClaim(s) created for it automatically"

dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
path="$dir/data"
Expand Down
8 changes: 4 additions & 4 deletions docker-kafka-persistent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

FROM openjdk:8u102-jre
FROM openjdk:8u121-jre

ENV kafka_version=0.10.1.1
ENV scala_version=2.11.8
ENV kafka_bin_version=2.11-$kafka_version
ENV kafka_version=0.10.2.0
ENV scala_version=2.12.1
ENV kafka_bin_version=2.12-$kafka_version

RUN curl -SLs "http://www.scala-lang.org/files/archive/scala-$scala_version.deb" -o scala.deb \
&& dpkg -i scala.deb \
Expand Down
4 changes: 2 additions & 2 deletions test/21consumer-test1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ spec:
image: solsson/kafka:0.10.0.1
command:
- ./bin/kafka-console-consumer.sh
- --zookeeper
- zookeeper:2181
- --bootstrap-server
- kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
- --topic
- test1
- --from-beginning