With 0.8.1 update these two properties in the server.properties config of
the broker to be 172.16.0.100 and 19092 respectively

# Hostname the broker will advertise to producers and consumers. If not
set, it uses the
# value for "host.name" if configured.  Otherwise, it will use the value
returned from
# java.net.InetAddress.getCanonicalHostName().
#advertised.host.name=<hostname routable by clients>

# The port to publish to ZooKeeper for clients to use. If this is not set,
# it will publish the same port that the broker binds to.
#advertised.port=<port accessible by clients>

/*******************************************
 Joe Stein
 Founder, Principal Consultant
 Big Data Open Source Security LLC
 http://www.stealth.ly
 Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
********************************************/


On Wed, Mar 19, 2014 at 6:39 PM, Sotaro Kimura <rfbrin...@gmail.com> wrote:

> Hi, all.
>
> I'm trying Log produce to Remote Kafka Cluster over SSH Tunneling.
>
> Configuration is below.
> - Kafka cluster in DataCenter(each machine has Grobal IP Address).
> Firewall allows only ssh port(22).
> ex) 192.168.100.100
> - Kafka producer exists out of DataCenter.
> ex) 172.16.0.100
>
> I tried produce over SSH Tunneling.
> Producer successed getting meta data from brokers.
> But meta data is Address which producer can't access directry.
>
> Detail is below.
> 1. Ssh connect producer machine to DataCenter.
> 172.16.0.100 > 192.168.100.100:22
> 2. Create SSH Tunnel over ssh connection.
> 172.16.0.100's localhost:19092 to 192.168.100.100:9092(Kafka receive
> port).
> 3. Producer connect to localhost:19092.
> Producer get metadata from brokers(192.168.100.100:9092).
> 4. Producer failed to connect brokers(192.168.100.100:9092).
>
> In such situations, how I can produce to Remote Kafka Cluster?
>
> --
> #################################
> 木村 宗太郎 Sotaro Kimura
> <rfbrin...@gmail.com>
> #################################
>

Reply via email to