Skip to content

Commit b9e30a4

Browse files
authored
Merge pull request #99805 from mimig1/12272019item406443
HDI: Made Configure IP addressing a separate H3
2 parents ba4e61b + ee9c259 commit b9e30a4

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

articles/hdinsight/kafka/apache-kafka-mirroring.md

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,36 +81,41 @@ This architecture features two clusters in different resource groups and virtual
8181

8282
![HDInsight Kafka add vnet peering](./media/apache-kafka-mirroring/hdi-add-vnet-peering.png)
8383

84-
1. Configure IP advertising:
85-
1. Go to the Ambari dashboard for the primary cluster: `https://PRIMARYCLUSTERNAME.azurehdinsight.net`.
86-
1. Select **Services** > **Kafka**. CliSelectck the **Configs** tab.
87-
1. Add the following config lines to the bottom **kafka-env template** section. Select **Save**.
84+
### Configure IP advertising
8885

89-
```
90-
# Configure Kafka to advertise IP addresses instead of FQDN
91-
IP_ADDRESS=$(hostname -i)
92-
echo advertised.listeners=$IP_ADDRESS
93-
sed -i.bak -e '/advertised/{/advertised@/!d;}' /usr/hdp/current/kafka-broker/conf/server.properties
94-
echo "advertised.listeners=PLAINTEXT://$IP_ADDRESS:9092" >> /usr/hdp/current/kafka-broker/conf/server.properties
95-
```
86+
Configure IP advertising to enable a client to connect using broker IP addresses instead of domain names.
87+
88+
1. Go to the Ambari dashboard for the primary cluster: `https://PRIMARYCLUSTERNAME.azurehdinsight.net`.
89+
1. Select **Services** > **Kafka**. CliSelectck the **Configs** tab.
90+
1. Add the following config lines to the bottom **kafka-env template** section. Select **Save**.
91+
92+
```
93+
# Configure Kafka to advertise IP addresses instead of FQDN
94+
IP_ADDRESS=$(hostname -i)
95+
echo advertised.listeners=$IP_ADDRESS
96+
sed -i.bak -e '/advertised/{/advertised@/!d;}' /usr/hdp/current/kafka-broker/conf/server.properties
97+
echo "advertised.listeners=PLAINTEXT://$IP_ADDRESS:9092" >> /usr/hdp/current/kafka-broker/conf/server.properties
98+
```
9699
97-
1. Enter a note on the **Save Configuration** screen and click **Save**.
98-
1. If you're prompted with configuration warning, click **Proceed Anyway**.
99-
1. Select **Ok** on the **Save Configuration Changes**.
100-
1. Select **Restart** > **Restart All Affected** in the **Restart Required** notification. Select **Confirm Restart All**.
100+
1. Enter a note on the **Save Configuration** screen and click **Save**.
101+
1. If you're prompted with configuration warning, click **Proceed Anyway**.
102+
1. Select **Ok** on the **Save Configuration Changes**.
103+
1. Select **Restart** > **Restart All Affected** in the **Restart Required** notification. Select **Confirm Restart All**.
101104
102-
![Apache Ambari restart all affected](./media/apache-kafka-mirroring/ambari-restart-notification.png)
105+
![Apache Ambari restart all affected](./media/apache-kafka-mirroring/ambari-restart-notification.png)
106+
107+
### Configure Kafka to listen on all network interfaces.
108+
109+
1. Stay on the **Configs** tab under **Services** > **Kafka**. In the **Kafka Broker** section set the **listeners** property to `PLAINTEXT://0.0.0.0:9092`.
110+
1. Select **Save**.
111+
1. Select **Restart**, and **Confirm Restart All**.
103112
104-
1. Configure Kafka to listen on all network interfaces.
105-
1. Stay on the **Configs** tab under **Services** > **Kafka**. In the **Kafka Broker** section set the **listeners** property to `PLAINTEXT://0.0.0.0:9092`.
106-
1. Select **Save**.
107-
1. Select **Restart**, and **Confirm Restart All**.
113+
### Record Broker IP addresses and Zookeeper addresses for primary cluster.
108114
109-
1. Record Broker IP addresses and Zookeeper addresses for primary cluster.
110-
1. Select **Hosts** on the Ambari dashboard.
111-
1. Make a note of the IP Addresses for the Brokers and Zookeepers. The broker nodes have **wn** as the first two letters of the host name, and the zookeeper nodes have **zk** as the first two letters of the host name.
115+
1. Select **Hosts** on the Ambari dashboard.
116+
1. Make a note of the IP Addresses for the Brokers and Zookeepers. The broker nodes have **wn** as the first two letters of the host name, and the zookeeper nodes have **zk** as the first two letters of the host name.
112117
113-
![Apache Ambari view node ip addresses](./media/apache-kafka-mirroring/view-node-ip-addresses2.png)
118+
![Apache Ambari view node ip addresses](./media/apache-kafka-mirroring/view-node-ip-addresses2.png)
114119
115120
1. Repeat the previous three steps for the second cluster **kafka-secondary-cluster**: configure IP advertising, set listeners and make a note of the Broker and Zookeeper IP addresses.
116121

0 commit comments

Comments
 (0)