How To Change the IP Address of a Single Node in a DX NetOps Kafka Cluster?
search cancel

How To Change the IP Address of a Single Node in a DX NetOps Kafka Cluster?

book

Article ID: 420727

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

Due to environment changes, it may be necessary to change the IP Address of a single node in a DX NetOps Kafka Cluster. Below are the steps to accomplish this task.

Environment

All Supported Releases

Resolution

In the below example, Node 1 will have the new IP Address:
 
On Nodes 2 and 3, stop both the kafka and zookeeper services.
On Nodes 2 and 3, edit the below files to update the IP address on Node 1 to the new IP.
 
/opt/CA/netops-kafka/config/server_customization.properties:9:zookeeper.connect=
/opt/CA/netops-kafka/config/zookeeper_customization.properties:1:server.1=
/opt/CA/netops-kafka/config/answers.properties:14:clusterHost1=
/opt/CA/netops-kafka/config/producer_customization.properties:1:bootstrap.servers=
/opt/CA/netops-kafka/config/consumer_customization.properties:1:bootstrap.servers=

 

/opt/CA/netops-kafka/kafka/config/consumer.properties:19:bootstrap.servers=
/opt/CA/netops-kafka/kafka/config/zookeeper.properties:25:server.1=
/opt/CA/netops-kafka/kafka/config/server.properties:125:zookeeper.connect=
/opt/CA/netops-kafka/kafka/config/producer.properties:21:bootstrap.servers=

On Nodes 2 and 3, start both the kafka and zookeeper services.

You then can verify connectivity on all nodes by running the below command on each node.
 
./zookeeper-shell.sh <NODE_HOSTNAME>:2181 ls /brokers/ids