Skip to content

Commit 31eb605

Browse files
committed
consolidated version 1.2.1
1 parent 3ab1270 commit 31eb605

File tree

8 files changed

+14
-45
lines changed

8 files changed

+14
-45
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ hs_err_pid*
4040
README.pdf
4141
README.html
4242

43-
release/
43+
release/search.sh
4444

4545
.DS_Store

README.adoc

+4-31
Original file line numberDiff line numberDiff line change
@@ -3062,11 +3062,8 @@ Run on docker:
30623062

30633063
[source,bash]
30643064
----
3065-
#Start a zookeeper container
3066-
docker run -d --name zookeeper -p 2181:2181 -p 2888:2888 -p 3888:3888 debezium/zookeeper
3067-
30683065
#Start a kafka container
3069-
docker run -d --name my-cluster-kafka-bootstrap -p 9092:9092 --link zookeeper:zookeeper debezium/kafka
3066+
docker run -d --name my-cluster-kafka-bootstrap -p 9092:9092 apache/kafka
30703067
30713068
#Start a kafka producer container
30723069
cd kafka-microprofile2-producer
@@ -3079,10 +3076,10 @@ docker build -t kafka-consumer:latest .
30793076
docker run -d --name kafka-consumer -p 9090:9080 -e KAFKABROKERLIST=my-cluster-kafka-bootstrap:9092 --link my-cluster-kafka-bootstrap:my-cluster-kafka-bootstrap kafka-consumer:latest
30803077
30813078
#Receive orders
3082-
curl -v -X POST http://localhost:9090/kafka-microprofile2-consumer-0.0.1-SNAPSHOT/order
3079+
curl -v -X POST http://localhost:9090/kafka-microprofile2-consumer-1.2.1/order
30833080
30843081
#Send orders (500)
3085-
curl -v -X POST http://localhost:9080/kafka-microprofile2-producer-0.0.1-SNAPSHOT/order
3082+
curl -v -X POST http://localhost:9080/kafka-microprofile2-producer-1.2.1/order
30863083
----
30873084

30883085
<<<
@@ -3811,17 +3808,6 @@ scripts/tear-down-tracing.sh
38113808

38123809
IMPORTANT: Results may vary and are dependent on the performances of your host
38133810

3814-
Tested on a host with:
3815-
3816-
- CPU(s): 12
3817-
- Model name: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
3818-
- CPU family: 6
3819-
- Thread(s) per core: 2
3820-
- Core(s) per socket: 6
3821-
- 32GB RAM
3822-
- Fedora 38 - Kernel 6.3.5-200.fc38.x86_64
3823-
- Docker version 24.0.2
3824-
38253811
IMPORTANT: By default, a container has no resource constraints and can use as much of a given resource as the host’s kernel scheduler allows. Docker provides ways to control how much memory, or CPU a container can use, setting runtime configuration flags.
38263812

38273813
You can check docker usage during the test using _docker stats_ command:
@@ -3853,20 +3839,7 @@ Docker containers can be configured for RAM and CPU limits using:
38533839
mem_reservation: "512m"
38543840
cpus: "1"
38553841
cpuset: "2"
3856-
depends_on:
3857-
- zookeeper
3858-
ports:
3859-
- "9092:9092"
3860-
environment:
3861-
KAFKA_BROKER_ID: 1
3862-
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
3863-
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
3864-
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092
3865-
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
3866-
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
3867-
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 2
3868-
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
3869-
KAFKA_TOOLS_LOG4J_LOGLEVEL: ERROR
3842+
...
38703843
----
38713844

38723845
=== Producer
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM websphere-liberty:microProfile2
22

3-
COPY target/kafka-microprofile2-consumer-0.0.1-SNAPSHOT.war /config/dropins/
3+
COPY target/kafka-microprofile2-consumer-1.2.1.war /config/dropins/
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM websphere-liberty:microProfile2
22

3-
COPY target/kafka-microprofile2-producer-0.0.1-SNAPSHOT.war /config/dropins/
3+
COPY target/kafka-microprofile2-producer-1.2.1.war /config/dropins/

kafka-smt-aspectj/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<artifactId>maven-compiler-plugin</artifactId>
7979
<version>3.6.1</version>
8080
<configuration>
81-
<source>11</source>
82-
<target>11</target>
81+
<source>17</source>
82+
<target>17</target>
8383
</configuration>
8484
</plugin>
8585
</plugins>

kafka-smt-custom/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
<artifactId>maven-compiler-plugin</artifactId>
7272
<version>3.6.1</version>
7373
<configuration>
74-
<source>11</source>
75-
<target>11</target>
74+
<source>17</source>
75+
<target>17</target>
7676
</configuration>
7777
</plugin>
7878
</plugins>

kafka-unixcommand-connector/src/assembly/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "kafka-unixcommand",
3-
"version" : "0.0.1",
3+
"version" : "1.2.1",
44
"title" : "Kafka Connect unixcommand",
55
"description" : "For demos only: A Kafka Connect connector for generating mock data, not suitable for production",
66
"owner" : {

release/build.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
PRJ_HOME=..
24
SPRING_PRODUCER_HOME=../kafka-springboot-producer
35
SPRING_CONSUMER_HOME=../kafka-springboot-consumer
@@ -9,12 +11,6 @@ function compile {
911
}
1012

1113
function release {
12-
printf "\nCompiling..\n"
13-
mvn -f $1/pom.xml clean compile
14-
15-
printf "\nRun tests..\n"
16-
mvn -f $1/pom.xml clean test
17-
1814
printf "\nPackaging..\n"
1915
mvn -f $1/pom.xml clean install
2016
}

0 commit comments

Comments
 (0)