Trouble changing port in Confluent 2.0.0 Kafka 0.9
<p>Seeing some strange behavior with Confluent 2.0.0 Kafka 0.9, wondering if anyone has any ideas.  I had started up a broker with the PLAINTEXT listener, on 9092.  worked great.  I am trying to change it to listen to a different port.  I tried 9095.  When it starts up I see this in the log:</p>

<pre><code>[2016-01-14 18:11:43,511] INFO Awaiting socket connections on 0.0.0.0:9095. (kafka.network.Acceptor)
</code></pre>

<p>But then later, I see this</p>

<pre><code>[2016-01-14 18:11:43,906] INFO Registered broker 0 at path /brokers/ids/0 with addresses: PLAINTEXT -&gt; EndPoint(ec2-54-164-3-183.compute-1.amazonaws.com,9092,PLAINTEXT) (kafka.utils.ZkUtils)
</code></pre>

<p>This is concerning, why is it still registering on 9092???</p>

<p>At this point, if I try to produce on 9095 I get tons of these until I kill it:</p>

<pre><code>[2016-01-14 18:14:42,614] WARN Error while fetching metadata with correlation id 0 : {plaintext=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2016-01-14 18:14:42,745] WARN Error while fetching metadata with correlation id 1 : {plaintext=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2016-01-14 18:14:42,850] WARN Error while fetching metadata with correlation id 2 : {plaintext=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
...
</code></pre>

<p>And if I try to produce on 9092 it fails after 1 minute with this:</p>

<pre><code>[2016-01-14 18:30:11,845] ERROR Error when sending message to topic plaintext with key: null, value: 10 bytes with error: Failed to update metadata after 60000 ms. (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
</code></pre>

<p>I think this may have something to do with my host names not being set up properly... but I'm not sure how to do that... FYI this is an EC2 instance.  hostname is ip-10-0-0-22.  /etc/hosts has </p>

<pre><code>127.0.0.1 localhost
</code></pre>

<p>The public DNS is ec2-54-164-3-183.compute-1.amazonaws.com.  And in my server.properties I have </p>

<pre><code>advertised.host.name=ec2-54-164-3-183.compute-1.amazonaws.com
</code></pre>

<p>(This last I found I had to set to be able to connect to the broker from outside of amazon).</p>

<p>So... any suggestions from any Kafka experts?</p>