Repository: wurstmeister/kafka-docker

Issue #122: Invalid value tcp://10.0.35.234:9092 for configuration port: Not a number of type INT
Created: 2016-09-15T17:10:41Z
I'm following http://www.defuze.org/archives/351-running-a-zookeeper-and-kafka-cluster-with-kubernetes-on-aws.html in order to deploy Kafka on Kubernetes.
This is what my configuration looks like:
containers:
        - name: kafka
          image: wurstmeister/kafka
          ports:
            - containerPort: 9092
          env:
            - name: KAFKA_ADVERTISED_PORT
              value: "9092"
            - name: KAFKA_ADVERTISED_HOST_NAME
              value: kafka
            - name: KAFKA_ZOOKEEPER_CONNECT
              value: zk1:2181,zk2:2181,zk3:2181
            - name: KAFKA_CREATE_TOPICS
              value: test:1:1

The hostname kafka is resolved internally to the IP of the kafka service, which in this case is 10.0.35.234.
When I run this, the container crashes. These are the logs I see:
awk: cmd. line:1: Unexpected token
creating topics: test:1:1
[2016-09-15 17:00:09,293] FATAL  (kafka.Kafka$)
org.apache.kafka.common.config.ConfigException: Invalid value tcp://10.0.35.234:9092 for configuration port: Not a number of type INT
    at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:670)
    at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:418)
    at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:55)
    at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:759)
    at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:743)
    at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:740)
    at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)
    at kafka.Kafka$.main(Kafka.scala:58)
    at kafka.Kafka.main(Kafka.scala)

After this, it fails while creating the topic because replication factor = 1 and brokers = 0.
Why is it using tcp://10.0.35.234:9092 as the value of the port?

Duplicate issue #265:  Error creating broker listeners from 'PLAINTEXT://:tcp://10.99.149.156:9092': No security protocol defined for listener PLAINTEXT://:TCP
Created: 2018-02-11T13:24:03Z
This must be caused by misconfiguration of something, but I don't know this project well enough to say what was misconfigured.  This line looks suspicious: https://github.com/wurstmeister/kafka-docker/blob/master/start-kafka.sh#L82 but I could be wrong.
In any case, with all defaults this image should produce some sensible configuration in which it can run or report an error that is understandable by human beings.  The error above comes from lack of validation of default parameters of this image.
I've added set -x to start-kafka.sh.  Below is the output I get:
./start-kafka.sh
+ [[ -z tcp://10.111.134.92:9092 ]]
+ + [[ -z create-topics.sh''
 ]]
+ [[ -z '' ]]
+ [[ -z '' ]]
+ [[ -S /var/run/docker.sock ]]
+ [[ -z '' ]]
+ [[ -n '' ]]
+ export KAFKA_BROKER_ID=-1
+ KAFKA_BROKER_ID=-1
+ [[ -z '' ]]
+ export KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz
+ KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz
+ [[ -z 127.0.0.1:2181 ]]
+ [[ -n '' ]]
+ [[ -z 127.0.0.1 ]]
+ [[ -n '' ]]
+ export KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092
+ KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092
+ export KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092
+ KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo -e '\n'
+ unset KAFKA_CREATE_TOPICS
+ unset KAFKA_ADVERTISED_PROTOCOL_NAME
+ unset KAFKA_PROTOCOL_NAME
+ [[ -n PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092 ]]
+ unset KAFKA_ADVERTISED_PORT
+ unset KAFKA_ADVERTISED_HOST_NAME
+ [[ -n PLAINTEXT://:tcp://10.111.134.92:9092 ]]
+ unset KAFKA_PORT
+ unset KAFKA_HOST_NAME
++ env
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP=tcp://10.110.124.218:4000 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP=tcp://10.110.124.218:4000 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JAVA_VERSION_BUILD=16 =~ ^KAFKA_ ]]
+ [[ JAVA_VERSION_BUILD=16 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_HOME=/opt/kafka =~ ^KAFKA_ ]]
+ [[ ! KAFKA_HOME=/opt/kafka =~ ^KAFKA_HOME ]]
+ [[ KAFKA_HOME=/opt/kafka =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP=tcp://10.97.94.81:4102 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP=tcp://10.97.94.81:4102 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP=tcp://10.98.201.219:4103 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP=tcp://10.98.201.219:4103 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ HOSTNAME=kafka-6d5ff44f6c-hqrtz =~ ^KAFKA_ ]]
+ [[ HOSTNAME=kafka-6d5ff44f6c-hqrtz =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP_PORT=4142 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP_PORT=4142 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP=tcp://10.97.94.81:4002 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP=tcp://10.97.94.81:4002 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_PORT=tcp://10.110.72.37:2181 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_PORT=tcp://10.110.72.37:2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_PORT_9042_TCP_PORT=9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_PORT_9042_TCP_PORT=9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP_PORT=5150 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP_PORT=5150 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP_ADDR=10.110.124.218 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP_ADDR=10.110.124.218 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_9092_TCP_PORT=9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_9092_TCP_PORT=9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_9092_TCP_PORT=9092
++ tr _ .
++ tr '[:upper:]' '[:lower:]'
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
+ kafka_name=port.9092.tcp.port
++ echo KAFKA_PORT_9092_TCP_PORT=9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_9092_TCP_PORT
+ egrep -q '(^|^#)port.9092.tcp.port=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.9092.tcp.port)=(.*)@\2=9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_9092_TCP_PORT=9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT_PORT_2=2181 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT_PORT_2=2181 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_PORT_PORT_2=2181
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' ++ '[:lower:]'
tr _ .
+ kafka_name=service.port.port.2
++ echo KAFKA_SERVICE_PORT_PORT_2=2181
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT_PORT_2
+ egrep -q '(^|^#)service.port.port.2=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port.port.2)=(.*)@\2=2181@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT_PORT_2=2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT_9092_TCP_ADDR=10.110.185.158 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT_9092_TCP_ADDR=10.110.185.158 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_PORT_9092_TCP_ADDR=10.110.185.158
++ tr _ .
++ tr '[:upper:]' '[:lower:]'
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
+ kafka_name=service.port.9092.tcp.addr
++ echo KAFKA_SERVICE_PORT_9092_TCP_ADDR=10.110.185.158
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT_9092_TCP_ADDR
+ egrep -q '(^|^#)service.port.9092.tcp.addr=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port.9092.tcp.addr)=(.*)@\2=10.110.185.158@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT_9092_TCP_ADDR=10.110.185.158 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_2181_TCP_PORT=2181 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_2181_TCP_PORT=2181 =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_2181_TCP_PORT=2181
++ ++ tr '[:upper:]' '[:lower:]'
sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr _ .
+ kafka_name=port.2181.tcp.port
++ echo KAFKA_PORT_2181_TCP_PORT=2181
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_2181_TCP_PORT
+ egrep -q '(^|^#)port.2181.tcp.port=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.2181.tcp.port)=(.*)@\2=2181@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_2181_TCP_PORT=2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ TERM=xterm =~ ^KAFKA_ ]]
+ [[ TERM=xterm =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181 =~ ^KAFKA_HOME ]]
++ echo KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
+ kafka_name=zookeeper.connect
++ echo KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_ZOOKEEPER_CONNECT
+ egrep -q '(^|^#)zookeeper.connect=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(zookeeper.connect)=(.*)@\2=127.0.0.1:2181@g' /opt/kafka/config/server.properties
+ [[ KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT_PORT_1=9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT_PORT_1=9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_PORT_PORT_1=9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr _ .
tr '[:upper:]' '[:lower:]'
+ kafka_name=service.port.port.1
++ echo KAFKA_SERVICE_PORT_PORT_1=9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT_PORT_1
+ egrep -q '(^|^#)service.port.port.1=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port.port.1)=(.*)@\2=9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT_PORT_1=9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_PORT_443_TCP_PORT=443 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_PORT_443_TCP_PORT=443 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_PORT=tcp://10.96.0.1:443 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_PORT=tcp://10.96.0.1:443 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT_9092_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT_9092_TCP_PROTO=tcp =~ ^KAFKA_HOME ]]
++ ++ tr _ .
sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ echo KAFKA_SERVICE_PORT_9092_TCP_PROTO=tcp
+ kafka_name=service.port.9092.tcp.proto
++ echo KAFKA_SERVICE_PORT_9092_TCP_PROTO=tcp
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT_9092_TCP_PROTO
+ egrep -q '(^|^#)service.port.9092.tcp.proto=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port.9092.tcp.proto)=(.*)@\2=tcp@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT_9092_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT=tcp://10.96.217.66:8080 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT=tcp://10.96.217.66:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JAVA_VERSION_MAJOR=8 =~ ^KAFKA_ ]]
+ [[ JAVA_VERSION_MAJOR=8 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ SCALA_VERSION=2.12 =~ ^KAFKA_ ]]
+ [[ SCALA_VERSION=2.12 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP_ADDR=10.109.255.57 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP_ADDR=10.109.255.57 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_SERVICE_HOST=10.109.255.57 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_SERVICE_HOST=10.109.255.57 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP_PORT=8081 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP_PORT=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_4=4103 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_4=4103 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr _ .
tr '[:upper:]' '[:lower:]'
+ kafka_name=advertised.listeners
++ echo KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_ADVERTISED_LISTENERS
+ egrep -q '(^|^#)advertised.listeners=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(advertised.listeners)=(.*)@\2=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_PORT_9042_TCP=tcp://10.106.58.19:9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_PORT_9042_TCP=tcp://10.106.58.19:9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP_PORT=4000 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP_PORT=4000 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_SERVICE_PORT=443 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_SERVICE_PORT=443 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_HOST=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_HOST=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_API_HTTP=8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_API_HTTP=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP_PORT=4103 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP_PORT=4103 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_SERVICE_PORT_CASSANDRA_PORT=9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_SERVICE_PORT_CASSANDRA_PORT=9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP_PORT=4102 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP_PORT=4102 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP_ADDR=10.103.9.181 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP_ADDR=10.103.9.181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP_PORT=4103 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP_PORT=4103 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_SERVICE_HOST=10.96.0.1 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_SERVICE_HOST=10.96.0.1 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP=tcp://10.98.201.219:4140 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP=tcp://10.98.201.219:4140 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_3=4003 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_3=4003 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_2181_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_2181_TCP_PROTO=tcp =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_2181_TCP_PROTO=tcp
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr _ .
++ tr '[:upper:]' '[:lower:]'
+ kafka_name=port.2181.tcp.proto
++ echo KAFKA_PORT_2181_TCP_PROTO=tcp
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_2181_TCP_PROTO
+ egrep -q '(^|^#)port.2181.tcp.proto=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.2181.tcp.proto)=(.*)@\2=tcp@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_2181_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_9092_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_9092_TCP_PROTO=tcp =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_9092_TCP_PROTO=tcp
++ ++ tr '[:upper:]' '[:lower:]'
sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr _ .
+ kafka_name=port.9092.tcp.proto
++ echo KAFKA_PORT_9092_TCP_PROTO=tcp
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_9092_TCP_PROTO
+ egrep -q '(^|^#)port.9092.tcp.proto=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.9092.tcp.proto)=(.*)@\2=tcp@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_9092_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ GLIBC_VERSION=2.26-r0 =~ ^KAFKA_ ]]
+ [[ GLIBC_VERSION=2.26-r0 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_SERVICE_PORT_ZOOKEEPER_PORT=2181 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_SERVICE_PORT_ZOOKEEPER_PORT=2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP_PORT=4002 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP_PORT=4002 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_SERVICE_PORT=9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_SERVICE_PORT=9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP=tcp://10.109.255.57:8081 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP=tcp://10.109.255.57:8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP=tcp://10.109.255.57:8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP=tcp://10.109.255.57:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP_PORT=4140 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP_PORT=4140 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP=tcp://10.110.72.37:2181 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP=tcp://10.110.72.37:2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP=tcp://10.103.9.181:9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP=tcp://10.103.9.181:9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_SERVICE_PORT_KAFKA_PORT=9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_SERVICE_PORT_KAFKA_PORT=9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_SERVICE_PORT_KAFKA_PORT=9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
+ kafka_name=service.service.port.kafka.port
++ echo KAFKA_SERVICE_SERVICE_PORT_KAFKA_PORT=9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_SERVICE_PORT_KAFKA_PORT
+ egrep -q '(^|^#)service.service.port.kafka.port=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.service.port.kafka.port)=(.*)@\2=9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_SERVICE_PORT_KAFKA_PORT=9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP=tcp://10.97.94.81:8081 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP=tcp://10.97.94.81:8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_SERVICE_PORT=9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_SERVICE_PORT=9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_SERVICE_PORT=9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
+ kafka_name=service.service.port
++ echo KAFKA_SERVICE_SERVICE_PORT=9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_SERVICE_PORT
+ egrep -q '(^|^#)service.service.port=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.service.port)=(.*)@\2=9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_SERVICE_PORT=9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP=tcp://10.97.94.81:8080 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP=tcp://10.97.94.81:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_OPS_GRPC=4103 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_OPS_GRPC=4103 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP_ADDR=10.96.217.66 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP_ADDR=10.96.217.66 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_HOST=10.111.134.92 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_HOST=10.111.134.92 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_HOST=10.111.134.92
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr _ .
tr '[:upper:]' '[:lower:]'
+ kafka_name=service.host
++ ++ sed -r 's/(.*)=.*/\1/g'
echo KAFKA_SERVICE_HOST=10.111.134.92
+ env_var=KAFKA_SERVICE_HOST
+ egrep -q '(^|^#)service.host=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.host)=(.*)@\2=10.111.134.92@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_HOST=10.111.134.92 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JAVA_JCE=standard =~ ^KAFKA_ ]]
+ [[ JAVA_JCE=standard =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT=tcp://10.110.124.218:8080 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT=tcp://10.110.124.218:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP_ADDR=10.110.124.218 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP_ADDR=10.110.124.218 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP=tcp://10.96.217.66:8081 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP=tcp://10.96.217.66:8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT=tcp://10.110.185.158:9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT=tcp://10.110.185.158:9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_PORT=tcp://10.110.185.158:9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr _ .
tr '[:upper:]' '[:lower:]'
+ kafka_name=service.port
++ echo KAFKA_SERVICE_PORT=tcp://10.110.185.158:9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT
+ egrep -q '(^|^#)service.port=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port)=(.*)@\2=tcp://10.110.185.158:9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT=tcp://10.110.185.158:9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP_ADDR=10.97.94.81 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4102_TCP_ADDR=10.97.94.81 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_HOST=10.96.217.66 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_HOST=10.96.217.66 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP=tcp://10.110.124.218:8080 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP=tcp://10.110.124.218:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4103_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/jdk/bin:/bin =~ ^KAFKA_ ]]
+ [[ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/jdk/bin:/bin =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT_9092_TCP_PORT=9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT_9092_TCP_PORT=9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_PORT_9092_TCP_PORT=9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr '[:upper:]' '[:lower:]'
tr _ .
+ kafka_name=service.port.9092.tcp.port
++ echo KAFKA_SERVICE_PORT_9092_TCP_PORT=9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT_9092_TCP_PORT
+ egrep -q '(^|^#)service.port.9092.tcp.port=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port.9092.tcp.port)=(.*)@\2=9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT_9092_TCP_PORT=9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP_ADDR=10.110.72.37 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP_ADDR=10.110.72.37 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP_ADDR=10.109.255.57 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP_ADDR=10.109.255.57 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP_PORT=4100 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP_PORT=4100 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP=tcp://10.109.255.57:4003 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP=tcp://10.109.255.57:4003 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc =~ ^KAFKA_ ]]
+ [[ GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_SERVICE_HOST=10.110.185.158 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_SERVICE_HOST=10.110.185.158 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_SERVICE_HOST=10.110.185.158
++ ++ tr sed '[:upper:]' -r 's/KAFKA_(.*)=.*/\1/g''[:lower:]'++ tr _ .


+ kafka_name=service.service.host
++ echo KAFKA_SERVICE_SERVICE_HOST=10.110.185.158
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_SERVICE_HOST
+ egrep -q '(^|^#)service.service.host=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.service.host)=(.*)@\2=10.110.185.158@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_SERVICE_HOST=10.110.185.158 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP_PORT=4003 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP_PORT=4003 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_VERSION=1.0.0 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_VERSION=1.0.0 =~ ^KAFKA_HOME ]]
++ echo KAFKA_VERSION=1.0.0
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr '[:upper:]' '[:lower:]'
tr _ .
+ kafka_name=version
++ echo KAFKA_VERSION=1.0.0
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_VERSION
+ egrep -q '(^|^#)version=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(version)=(.*)@\2=1.0.0@g' /opt/kafka/config/server.properties
+ [[ KAFKA_VERSION=1.0.0 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_PORT=tcp://10.106.58.19:9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_PORT=tcp://10.106.58.19:9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP_ADDR=10.97.94.81 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP_ADDR=10.97.94.81 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT=tcp://10.98.201.219:8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT=tcp://10.98.201.219:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ PWD=/kafka =~ ^KAFKA_ ]]
+ [[ PWD=/kafka =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JAVA_HOME=/opt/jdk =~ ^KAFKA_ ]]
+ [[ JAVA_HOME=/opt/jdk =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_HOST=10.106.58.19 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_HOST=10.106.58.19 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_PORT_9042_TCP_ADDR=10.106.58.19 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_PORT_9042_TCP_ADDR=10.106.58.19 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_HTTP=4140 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_HTTP=4140 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ LANG=C.UTF-8 =~ ^KAFKA_ ]]
+ [[ LANG=C.UTF-8 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP_PORT=2181 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP_PORT=2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_PORT_9042_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ CASSANDRA_PORT_9042_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT=tcp://10.97.94.81:8080 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT=tcp://10.97.94.81:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP_ADDR=10.109.255.57 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP_ADDR=10.109.255.57 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz =~ ^KAFKA_ ]]
+ [[ ! KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz =~ ^KAFKA_HOME ]]
++ echo KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
+ kafka_name=log.dirs
++ echo KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_LOG_DIRS
+ egrep -q '(^|^#)log.dirs=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(log.dirs)=(.*)@\2=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz@g' /opt/kafka/config/server.properties
+ [[ KAFKA_LOG_DIRS=/kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_4=4100 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_4=4100 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP_PORT=4101 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP_PORT=4101 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_GRPC=5150 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_GRPC=5150 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_PORT=9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_PORT=9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP_ADDR=10.110.124.218 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP_ADDR=10.110.124.218 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP_ADDR=10.96.217.66 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP_ADDR=10.96.217.66 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_SERVICE_HOST=10.97.94.81 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_SERVICE_HOST=10.97.94.81 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ HOME=/root =~ ^KAFKA_ ]]
+ [[ HOME=/root =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ SHLVL=2 =~ ^KAFKA_ ]]
+ [[ SHLVL=2 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_PORT_2181_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP=tcp://10.96.217.66:4101 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP=tcp://10.96.217.66:4101 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP_ADDR=10.109.255.57 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP_ADDR=10.109.255.57 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_PORT_443_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ KUBERNETES_PORT_443_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP=tcp://10.109.255.57:4103 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4103_TCP=tcp://10.109.255.57:4103 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_3=4000 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT_PORT_3=4000 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_SERVICE_PORT_HTTPS=443 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_SERVICE_PORT_HTTPS=443 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_3=4001 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_3=4001 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_9092_TCP=tcp://10.111.134.92:9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_9092_TCP=tcp://10.111.134.92:9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_9092_TCP=tcp://10.111.134.92:9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr _ tr .'[:upper:]' 
'[:lower:]'
+ kafka_name=port.9092.tcp
++ echo KAFKA_PORT_9092_TCP=tcp://10.111.134.92:9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_9092_TCP
+ egrep -q '(^|^#)port.9092.tcp=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.9092.tcp)=(.*)@\2=tcp://10.111.134.92:9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_9092_TCP=tcp://10.111.134.92:9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP=tcp://10.98.201.219:5150 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP=tcp://10.98.201.219:5150 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_2181_TCP=tcp://10.111.134.92:2181 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_2181_TCP=tcp://10.111.134.92:2181 =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_2181_TCP=tcp://10.111.134.92:2181
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ ++ tr '[:upper:]' '[:lower:]'
tr _ .
+ kafka_name=port.2181.tcp
++ echo KAFKA_PORT_2181_TCP=tcp://10.111.134.92:2181
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_2181_TCP
+ egrep -q '(^|^#)port.2181.tcp=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.2181.tcp)=(.*)@\2=tcp://10.111.134.92:2181@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_2181_TCP=tcp://10.111.134.92:2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JAVA_PACKAGE=server-jre =~ ^KAFKA_ ]]
+ [[ JAVA_PACKAGE=server-jre =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP=tcp://10.96.217.66:8080 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP=tcp://10.96.217.66:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP_ADDR=10.97.94.81 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8081_TCP_ADDR=10.97.94.81 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT=tcp://10.109.255.57:8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT=tcp://10.109.255.57:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_SERVICE_HOST=10.110.124.218 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_SERVICE_HOST=10.110.124.218 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP_ADDR=10.96.217.66 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8081_TCP_ADDR=10.96.217.66 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_API_GRPC=4003 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_API_GRPC=4003 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP=tcp://10.98.201.219:4003 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP=tcp://10.98.201.219:4003 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP=tcp://10.98.201.219:8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP=tcp://10.98.201.219:8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_HTTP_INGRESS=4142 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_HTTP_INGRESS=4142 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP=tcp://10.98.201.219:8081 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8081_TCP=tcp://10.98.201.219:8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_SERVICE_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_4=4101 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_SERVICE_PORT_PORT_4=4101 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_8080_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_SERVICE_HOST=10.110.72.37 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_SERVICE_HOST=10.110.72.37 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP=tcp://10.98.201.219:4142 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4142_TCP=tcp://10.98.201.219:4142 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_OPS_HTTP=8081 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT_JURO_KAFKA_OPS_HTTP=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092
++ tr _ .
++ tr '[:upper:]' '[:lower:]'
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
+ kafka_name=listeners
++ echo KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_LISTENERS
+ egrep -q '(^|^#)listeners=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(listeners)=(.*)@\2=PLAINTEXT://:tcp://10.111.134.92:9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_LISTENERS=PLAINTEXT://:tcp://10.111.134.92:9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP_PORT=4003 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_4003_TCP_PORT=4003 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP_ADDR=10.96.217.66 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4101_TCP_ADDR=10.96.217.66 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4003_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_1=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_SERVICE_PORT_9092_TCP=tcp://10.110.185.158:9092 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_SERVICE_PORT_9092_TCP=tcp://10.110.185.158:9092 =~ ^KAFKA_HOME ]]
++ echo KAFKA_SERVICE_PORT_9092_TCP=tcp://10.110.185.158:9092
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
+ kafka_name=service.port.9092.tcp
++ echo KAFKA_SERVICE_PORT_9092_TCP=tcp://10.110.185.158:9092
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_SERVICE_PORT_9092_TCP
+ egrep -q '(^|^#)service.port.9092.tcp=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(service.port.9092.tcp)=(.*)@\2=tcp://10.110.185.158:9092@g' /opt/kafka/config/server.properties
+ [[ KAFKA_SERVICE_PORT_9092_TCP=tcp://10.110.185.158:9092 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP=tcp://10.110.124.218:4100 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4100_TCP=tcp://10.110.124.218:4100 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_BROKER_ID=-1 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_BROKER_ID=-1 =~ ^KAFKA_HOME ]]
++ echo KAFKA_BROKER_ID=-1
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
+ kafka_name=broker.id
++ echo KAFKA_BROKER_ID=-1
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_BROKER_ID
+ egrep -q '(^|^#)broker.id=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(broker.id)=(.*)@\2=-1@g' /opt/kafka/config/server.properties
+ [[ KAFKA_BROKER_ID=-1 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_4140_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_3=4002 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_3=4002 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_RUNTIME_PORT_8081_TCP_PORT=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_SERVICE_HOST=10.103.9.181 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_SERVICE_HOST=10.103.9.181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP_PORT=4001 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP_PORT=4001 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_2=8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP_ADDR=10.97.94.81 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_PORT_4002_TCP_ADDR=10.97.94.81 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JAVA_VERSION_MINOR=152 =~ ^KAFKA_ ]]
+ [[ JAVA_VERSION_MINOR=152 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ ZOOKEEPER_SERVICE_SERVICE_PORT=2181 =~ ^KAFKA_ ]]
+ [[ ZOOKEEPER_SERVICE_SERVICE_PORT=2181 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP_PORT=9042 =~ ^KAFKA_ ]]
+ [[ CASSANDRA_SERVICE_PORT_9042_TCP_PORT=9042 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443 =~ ^KAFKA_ ]]
+ [[ KUBERNETES_PORT_443_TCP=tcp://10.96.0.1:443 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_9092_TCP_ADDR=10.111.134.92 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_9092_TCP_ADDR=10.111.134.92 =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_9092_TCP_ADDR=10.111.134.92
++ tr '[:upper:]' '[:lower:]'
++ tr _ .
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
+ kafka_name=port.9092.tcp.addr
++ echo KAFKA_PORT_9092_TCP_ADDR=10.111.134.92
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_9092_TCP_ADDR
+ egrep -q '(^|^#)port.9092.tcp.addr=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.9092.tcp.addr)=(.*)@\2=10.111.134.92@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_9092_TCP_ADDR=10.111.134.92 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_4=4102 =~ ^KAFKA_ ]]
+ [[ JURO_NETWORK_RUNTIME_SERVICE_PORT_PORT_4=4102 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ KAFKA_PORT_2181_TCP_ADDR=10.111.134.92 =~ ^KAFKA_ ]]
+ [[ ! KAFKA_PORT_2181_TCP_ADDR=10.111.134.92 =~ ^KAFKA_HOME ]]
++ echo KAFKA_PORT_2181_TCP_ADDR=10.111.134.92
++ sed -r 's/KAFKA_(.*)=.*/\1/g'
++ tr _ .
++ tr '[:upper:]' '[:lower:]'
+ kafka_name=port.2181.tcp.addr
++ echo KAFKA_PORT_2181_TCP_ADDR=10.111.134.92
++ sed -r 's/(.*)=.*/\1/g'
+ env_var=KAFKA_PORT_2181_TCP_ADDR
+ egrep -q '(^|^#)port.2181.tcp.addr=' /opt/kafka/config/server.properties
+ sed -r -i 's@(^|^#)(port.2181.tcp.addr)=(.*)@\2=10.111.134.92@g' /opt/kafka/config/server.properties
+ [[ KAFKA_PORT_2181_TCP_ADDR=10.111.134.92 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_8080_TCP_PROTO=tcp =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP_ADDR=10.98.201.219 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_PORT_5150_TCP_ADDR=10.98.201.219 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT=8080 =~ ^KAFKA_ ]]
+ [[ JURO_KAFKA_SERVICE_SERVICE_PORT=8080 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP=tcp://10.110.124.218:8081 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_8081_TCP=tcp://10.110.124.218:8081 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP_ADDR=10.110.124.218 =~ ^KAFKA_ ]]
+ [[ JURO_JIN_RUNTIME_PORT_4000_TCP_ADDR=10.110.124.218 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP=tcp://10.96.217.66:4001 =~ ^KAFKA_ ]]
+ [[ JURO_CONNECTOR_RUNTIME_PORT_4001_TCP=tcp://10.96.217.66:4001 =~ ^LOG4J_ ]]
+ for VAR in '`env`'
+ [[ _=/usr/bin/env =~ ^KAFKA_ ]]
+ [[ _=/usr/bin/env =~ ^LOG4J_ ]]
+ [[ -n '' ]]
+ exec /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
[2018-02-11 13:40:19,522] INFO KafkaConfig values: 
	advertised.host.name = null
	advertised.listeners = PLAINTEXT://127.0.0.1:tcp://10.111.134.92:9092
	advertised.port = null
	alter.config.policy.class.name = null
	authorizer.class.name = 
	auto.create.topics.enable = true
	auto.leader.rebalance.enable = true
	background.threads = 10
	broker.id = -1
	broker.id.generation.enable = true
	broker.rack = null
	compression.type = producer
	connections.max.idle.ms = 600000
	controlled.shutdown.enable = true
	controlled.shutdown.max.retries = 3
	controlled.shutdown.retry.backoff.ms = 5000
	controller.socket.timeout.ms = 30000
	create.topic.policy.class.name = null
	default.replication.factor = 1
	delete.records.purgatory.purge.interval.requests = 1
	delete.topic.enable = true
	fetch.purgatory.purge.interval.requests = 1000
	group.initial.rebalance.delay.ms = 0
	group.max.session.timeout.ms = 300000
	group.min.session.timeout.ms = 6000
	host.name = 
	inter.broker.listener.name = null
	inter.broker.protocol.version = 1.0-IV0
	leader.imbalance.check.interval.seconds = 300
	leader.imbalance.per.broker.percentage = 10
	listener.security.protocol.map = PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
	listeners = PLAINTEXT://:tcp://10.111.134.92:9092
	log.cleaner.backoff.ms = 15000
	log.cleaner.dedupe.buffer.size = 134217728
	log.cleaner.delete.retention.ms = 86400000
	log.cleaner.enable = true
	log.cleaner.io.buffer.load.factor = 0.9
	log.cleaner.io.buffer.size = 524288
	log.cleaner.io.max.bytes.per.second = 1.7976931348623157E308
	log.cleaner.min.cleanable.ratio = 0.5
	log.cleaner.min.compaction.lag.ms = 0
	log.cleaner.threads = 1
	log.cleanup.policy = [delete]
	log.dir = /tmp/kafka-logs
	log.dirs = /kafka/kafka-logs-kafka-6d5ff44f6c-hqrtz
	log.flush.interval.messages = 9223372036854775807
	log.flush.interval.ms = null
	log.flush.offset.checkpoint.interval.ms = 60000
	log.flush.scheduler.interval.ms = 9223372036854775807
	log.flush.start.offset.checkpoint.interval.ms = 60000
	log.index.interval.bytes = 4096
	log.index.size.max.bytes = 10485760
	log.message.format.version = 1.0-IV0
	log.message.timestamp.difference.max.ms = 9223372036854775807
	log.message.timestamp.type = CreateTime
	log.preallocate = false
	log.retention.bytes = -1
	log.retention.check.interval.ms = 300000
	log.retention.hours = 168
	log.retention.minutes = null
	log.retention.ms = null
	log.roll.hours = 168
	log.roll.jitter.hours = 0
	log.roll.jitter.ms = null
	log.roll.ms = null
	log.segment.bytes = 1073741824
	log.segment.delete.delay.ms = 60000
	max.connections.per.ip = 2147483647
	max.connections.per.ip.overrides = 
	message.max.bytes = 1000012
	metric.reporters = []
	metrics.num.samples = 2
	metrics.recording.level = INFO
	metrics.sample.window.ms = 30000
	min.insync.replicas = 1
	num.io.threads = 8
	num.network.threads = 3
	num.partitions = 1
	num.recovery.threads.per.data.dir = 1
	num.replica.fetchers = 1
	offset.metadata.max.bytes = 4096
	offsets.commit.required.acks = -1
	offsets.commit.timeout.ms = 5000
	offsets.load.buffer.size = 5242880
	offsets.retention.check.interval.ms = 600000
	offsets.retention.minutes = 1440
	offsets.topic.compression.codec = 0
	offsets.topic.num.partitions = 50
	offsets.topic.replication.factor = 1
	offsets.topic.segment.bytes = 104857600
	port = 9092
	principal.builder.class = null
	producer.purgatory.purge.interval.requests = 1000
	queued.max.request.bytes = -1
	queued.max.requests = 500
	quota.consumer.default = 9223372036854775807
	quota.producer.default = 9223372036854775807
	quota.window.num = 11
	quota.window.size.seconds = 1
	replica.fetch.backoff.ms = 1000
	replica.fetch.max.bytes = 1048576
	replica.fetch.min.bytes = 1
	replica.fetch.response.max.bytes = 10485760
	replica.fetch.wait.max.ms = 500
	replica.high.watermark.checkpoint.interval.ms = 5000
	replica.lag.time.max.ms = 10000
	replica.socket.receive.buffer.bytes = 65536
	replica.socket.timeout.ms = 30000
	replication.quota.window.num = 11
	replication.quota.window.size.seconds = 1
	request.timeout.ms = 30000
	reserved.broker.max.id = 1000
	sasl.enabled.mechanisms = [GSSAPI]
	sasl.kerberos.kinit.cmd = /usr/bin/kinit
	sasl.kerberos.min.time.before.relogin = 60000
	sasl.kerberos.principal.to.local.rules = [DEFAULT]
	sasl.kerberos.service.name = null
	sasl.kerberos.ticket.renew.jitter = 0.05
	sasl.kerberos.ticket.renew.window.factor = 0.8
	sasl.mechanism.inter.broker.protocol = GSSAPI
	security.inter.broker.protocol = PLAINTEXT
	socket.receive.buffer.bytes = 102400
	socket.request.max.bytes = 104857600
	socket.send.buffer.bytes = 102400
	ssl.cipher.suites = null
	ssl.client.auth = none
	ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
	ssl.endpoint.identification.algorithm = null
	ssl.key.password = null
	ssl.keymanager.algorithm = SunX509
	ssl.keystore.location = null
	ssl.keystore.password = null
	ssl.keystore.type = JKS
	ssl.protocol = TLS
	ssl.provider = null
	ssl.secure.random.implementation = null
	ssl.trustmanager.algorithm = PKIX
	ssl.truststore.location = null
	ssl.truststore.password = null
	ssl.truststore.type = JKS
	transaction.abort.timed.out.transaction.cleanup.interval.ms = 60000
	transaction.max.timeout.ms = 900000
	transaction.remove.expired.transaction.cleanup.interval.ms = 3600000
	transaction.state.log.load.buffer.size = 5242880
	transaction.state.log.min.isr = 1
	transaction.state.log.num.partitions = 50
	transaction.state.log.replication.factor = 1
	transaction.state.log.segment.bytes = 104857600
	transactional.id.expiration.ms = 604800000
	unclean.leader.election.enable = false
	zookeeper.connect = 127.0.0.1:2181
	zookeeper.connection.timeout.ms = 6000
	zookeeper.session.timeout.ms = 6000
	zookeeper.set.acl = false
	zookeeper.sync.time.ms = 2000
 (kafka.server.KafkaConfig)
[2018-02-11 13:40:19,553] FATAL  (kafka.Kafka$)
java.lang.IllegalArgumentException: Error creating broker listeners from 'PLAINTEXT://:tcp://10.111.134.92:9092': No security protocol defined for listener PLAINTEXT://:TCP
	at kafka.utils.CoreUtils$.listenerListToEndPoints(CoreUtils.scala:278)
	at kafka.server.KafkaConfig.$anonfun$getListeners$1(KafkaConfig.scala:1120)
	at scala.Option.map(Option.scala:146)
	at kafka.server.KafkaConfig.getListeners(KafkaConfig.scala:1119)
	at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:1089)
	at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:881)
	at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:878)
	at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)
	at kafka.Kafka$.main(Kafka.scala:82)
	at kafka.Kafka.main(Kafka.scala)
Caused by: java.lang.IllegalArgumentException: No security protocol defined for listener PLAINTEXT://:TCP
	at kafka.cluster.EndPoint$.$anonfun$createEndPoint$2(EndPoint.scala:48)
	at scala.collection.MapLike.getOrElse(MapLike.scala:128)
	at scala.collection.MapLike.getOrElse$(MapLike.scala:126)
	at scala.collection.AbstractMap.getOrElse(Map.scala:59)
	at kafka.cluster.EndPoint$.securityProtocol$1(EndPoint.scala:48)
	at kafka.cluster.EndPoint$.createEndPoint(EndPoint.scala:56)
	at kafka.utils.CoreUtils$.$anonfun$listenerListToEndPoints$6(CoreUtils.scala:275)
	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
	at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:32)
	at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:29)
	at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
	at scala.collection.TraversableLike.map(TraversableLike.scala:234)
	at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
	at scala.collection.AbstractTraversable.map(Traversable.scala:104)
	at kafka.utils.CoreUtils$.listenerListToEndPoints(CoreUtils.scala:275)
	... 9 more

Closing comment (2018-03-29T08:02:51Z): Duplicates #122