Skip to content

Commit

Permalink
Addition of properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol Vijaywargiya committed Mar 2, 2021
1 parent a6e79cc commit 7cbce8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions experiment_scripts/zookeeper_access_disable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ container_id=`docker ps -aqf "name=ziggurat_kafka${brokerid}_1"`

echo "Disabling zookeeper access on broker kafka${brokerid}"

docker exec -it $container_id /bin/bash -c "apt-get update && apt-get install -y iptables && iptables -A INPUT -s ziggurat_zookeeper_1.ziggurat_default -j DROP"

#docker exec -it $container_id /bin/bash -c "apt-get update && apt-get install -y iptables && iptables -A INPUT -s ziggurat_zookeeper_1.ziggurat_default -j DROP"
docker exec -it $container_id /bin/bash -c "iptables -A INPUT -s ziggurat_zookeeper_1.ziggurat_default -j DROP"



Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject tech.gojek/ziggurat "3.9.0"
(defproject tech.gojek/ziggurat "3.9.0-alpha"
:description "A stream processing framework to build stateless applications on kafka"
:url "https://github.com/gojektech/ziggurat"
:license {:name "Apache License, Version 2.0"
Expand Down
8 changes: 7 additions & 1 deletion src/ziggurat/streams.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
:oldest-processed-message-in-s 604800
:changelog-topic-replication-factor 3
:default-api-timeout-ms-config 60000
:retries 10
:retry-backoff-ms 60000
:session-timeout-ms-config 10000
:consumer-type :default
:default-key-serde "org.apache.kafka.common.serialization.Serdes$ByteArraySerde"
Expand Down Expand Up @@ -79,7 +81,9 @@
value-deserializer-encoding
deserializer-encoding
session-timeout-ms-config
default-api-timeout-ms-config]}]
default-api-timeout-ms-config
retries
retry-backoff-ms]}]
(validate-auto-offset-reset-config auto-offset-reset-config)
(doto (Properties.)
(.put StreamsConfig/APPLICATION_ID_CONFIG application-id)
Expand All @@ -93,6 +97,8 @@
(.put StreamsConfig/REPLICATION_FACTOR_CONFIG (int changelog-topic-replication-factor))
(.put ConsumerConfig/AUTO_OFFSET_RESET_CONFIG auto-offset-reset-config)
(.put ConsumerConfig/SESSION_TIMEOUT_MS_CONFIG (int session-timeout-ms-config))
(.put StreamsConfig/RETRIES_CONFIG (int retries))
(.put StreamsConfig/RETRY_BACKOFF_MS_CONFIG (int retry-backoff-ms))
(.put ConsumerConfig/DEFAULT_API_TIMEOUT_MS_CONFIG (int default-api-timeout-ms-config))
(set-upgrade-from-config upgrade-from)
(set-encoding-config key-deserializer-encoding value-deserializer-encoding deserializer-encoding)))
Expand Down

0 comments on commit 7cbce8e

Please sign in to comment.