diff options
author | sunil unnava <su622b@att.com> | 2018-08-29 11:59:57 -0400 |
---|---|---|
committer | sunil unnava <su622b@att.com> | 2018-08-29 12:00:24 -0400 |
commit | 203134eed85d14d560855c2a7e8cfa23c1c51983 (patch) | |
tree | 1872db1eeee94785d40d0ca8fe84c0b83f9ca345 | |
parent | 8dad6dfbab808df0a6209a52bd321ed436652bb6 (diff) |
changes to Kafka environment setting3.0.0-ONAP0.0.1
Issue-ID: DMAAP-628
Change-Id: Ic90084c0a558caf0dcbb90b5e53bd2cb3a82be9c
Signed-off-by: sunil unnava <su622b@att.com>
-rw-r--r-- | src/main/docker/start-kafka.sh | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/main/docker/start-kafka.sh b/src/main/docker/start-kafka.sh index 5571a59..90eaaea 100644 --- a/src/main/docker/start-kafka.sh +++ b/src/main/docker/start-kafka.sh @@ -36,11 +36,11 @@ if [[ -z "$KAFKA_ADVERTISED_HOST_NAME" && -n "$HOSTNAME_COMMAND" ]]; then export KAFKA_ADVERTISED_HOST_NAME=$(eval $HOSTNAME_COMMAND) fi -if [[ -n "$KAFKA_LISTENER_SECURITY_PROTOCOL_MAP" ]]; then - if [[ -n "$KAFKA_ADVERTISED_PORT" && -n "$KAFKA_ADVERTISED_PROTOCOL_NAME" ]]; then - export KAFKA_ADVERTISED_LISTENERS="${KAFKA_ADVERTISED_PROTOCOL_NAME}://${KAFKA_ADVERTISED_HOST_NAME-}:${KAFKA_ADVERTISED_PORT}" - export KAFKA_LISTENERS="$KAFKA_ADVERTISED_PROTOCOL_NAME://:$KAFKA_ADVERTISED_PORT" - fi +#if [[ -n "$KAFKA_LISTENER_SECURITY_PROTOCOL_MAP" ]]; then +# if [[ -n "$KAFKA_ADVERTISED_PORT" && -n "$KAFKA_ADVERTISED_PROTOCOL_NAME" ]]; then +# export KAFKA_ADVERTISED_LISTENERS="${KAFKA_ADVERTISED_PROTOCOL_NAME}://${KAFKA_ADVERTISED_HOST_NAME-}:${KAFKA_ADVERTISED_PORT}" +# export KAFKA_LISTENERS="$KAFKA_ADVERTISED_PROTOCOL_NAME://:$KAFKA_ADVERTISED_PORT" +# fi if [[ -z "$KAFKA_PROTOCOL_NAME" ]]; then export KAFKA_PROTOCOL_NAME="${KAFKA_ADVERTISED_PROTOCOL_NAME}" @@ -53,35 +53,35 @@ if [[ -n "$KAFKA_LISTENER_SECURITY_PROTOCOL_MAP" ]]; then if [[ -z "$KAFKA_INTER_BROKER_LISTENER_NAME" ]]; then export KAFKA_INTER_BROKER_LISTENER_NAME=$KAFKA_PROTOCOL_NAME fi -else +#else #DEFAULT LISTENERS - export KAFKA_ADVERTISED_LISTENERS="PLAINTEXT://${KAFKA_ADVERTISED_HOST_NAME-}:${KAFKA_ADVERTISED_PORT-$KAFKA_PORT}" - export KAFKA_LISTENERS="PLAINTEXT://${KAFKA_HOST_NAME-}:${KAFKA_PORT-9092}" -fi +# export KAFKA_ADVERTISED_LISTENERS="PLAINTEXT://${KAFKA_ADVERTISED_HOST_NAME-}:${KAFKA_ADVERTISED_PORT-$KAFKA_PORT}" +# export KAFKA_LISTENERS="PLAINTEXT://${KAFKA_HOST_NAME-}:${KAFKA_PORT-9092}" +#fi -if [[ -n "$ADD_LISTENER" && -n "$KAFKA_LISTENERS" ]]; then - export KAFKA_LISTENERS="${KAFKA_LISTENERS},${ADD_LISTENER}" -fi +#if [[ -n "$ADD_LISTENER" && -n "$KAFKA_LISTENERS" ]]; then +# export KAFKA_LISTENERS="${KAFKA_LISTENERS},${ADD_LISTENER}" +#fi -if [[ -n "$ADD_LISTENER" && -z "$KAFKA_LISTENERS" ]]; then - export KAFKA_LISTENERS="${ADD_LISTENER}" -fi +#if [[ -n "$ADD_LISTENER" && -z "$KAFKA_LISTENERS" ]]; then +# export KAFKA_LISTENERS="${ADD_LISTENER}" +#fi -if [[ -n "$ADD_LISTENER" && -n "$KAFKA_ADVERTISED_LISTENERS" ]]; then - export KAFKA_ADVERTISED_LISTENERS="${KAFKA_ADVERTISED_LISTENERS},${ADD_LISTENER}" -fi +#if [[ -n "$ADD_LISTENER" && -n "$KAFKA_ADVERTISED_LISTENERS" ]]; then +# export KAFKA_ADVERTISED_LISTENERS="${KAFKA_ADVERTISED_LISTENERS},${ADD_LISTENER}" +#fi -if [[ -n "$ADD_LISTENER" && -z "$KAFKA_ADVERTISED_LISTENERS" ]]; then - export KAFKA_ADVERTISED_LISTENERS="${ADD_LISTENER}" -fi +#if [[ -n "$ADD_LISTENER" && -z "$KAFKA_ADVERTISED_LISTENERS" ]]; then +# export KAFKA_ADVERTISED_LISTENERS="${ADD_LISTENER}" +#fi if [[ -n "$KAFKA_INTER_BROKER_LISTENER_NAME" && ! "$KAFKA_INTER_BROKER_LISTENER_NAME"X = "$KAFKA_PROTOCOL_NAME"X ]]; then if [[ -n "$KAFKA_INTER_BROKER_PORT" ]]; then export KAFKA_INTER_BROKER_PORT=$(( $KAFKA_PORT + 1 )) fi - export INTER_BROKER_LISTENER="${KAFKA_INTER_BROKER_LISTENER_NAME}://:${KAFKA_INTER_BROKER_PORT}" - export KAFKA_LISTENERS="${KAFKA_LISTENERS},${INTER_BROKER_LISTENER}" - export KAFKA_ADVERTISED_LISTENERS="${KAFKA_ADVERTISED_LISTENERS},${INTER_BROKER_LISTENER}" + #export INTER_BROKER_LISTENER="${KAFKA_INTER_BROKER_LISTENER_NAME}://:${KAFKA_INTER_BROKER_PORT}" + #export KAFKA_LISTENERS="${KAFKA_LISTENERS},${INTER_BROKER_LISTENER}" + #export KAFKA_ADVERTISED_LISTENERS="${KAFKA_ADVERTISED_LISTENERS},${INTER_BROKER_LISTENER}" unset KAFKA_INTER_BROKER_PORT unset KAFKA_SECURITY_INTER_BROKER_PROTOCOL unset INTER_BROKER_LISTENER |