[ 
https://issues.apache.org/jira/browse/KAFKA-12653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Köcke updated KAFKA-12653:
------------------------------------
    Description: 
Hey, 

 

in my setup I try to set several zookeeper nodes within my kafka broker (docker 
container) as fixed IPs.

The line within the +server.properties+ file looks something like:

 
{code:java}
[...]
zookeeper.connect=10.0.0.10:2181,10.0.0.11:2181,10.0.0.12:2181
{code}
 

If I try to start the docker container, the following message appears:
{code:java}
[2021-04-11 19:30:55,673] INFO Initiating client connection, 
connectString=10.0.0.10:2181,10.0.0.11:2181,10.0.0.12:2181 sessionTimeout=6000 
watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$@5b8dfcc1 
(org.apache.zookeeper.ZooKeeper)
[2021-04-11 19:30:55,683] INFO [ZooKeeperClient] Waiting until connected. 
(kafka.zookeeper.ZooKeeperClient) 
[2021-04-11 19:31:01,685] INFO [ZooKeeperClient] Closing. 
(kafka.zookeeper.ZooKeeperClient)
{code}
My network config (netplan) looks like this:

 

 
{code:java}
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: no
      dhcp6: no
      addresses:
        - 10.0.0.100/8
      gateway4: 10.0.0.1
      {code}
 

As soon as I adjust my netplan config:

 
{code:java}
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: no
      dhcp6: no
      addresses:
        - 10.0.0.100/8
      gateway4: 10.0.0.1 
      nameservers:
                    addresses: [10.0.0.150] #Bind9 DNS{code}
 

Everything works. 

 

*Please note,* that the above mentioned DNS Server cannot provide a resolvable 
name for any IP, because there is *no DNS record available* at all.

 

For me it looks like that kafka requires some kind of DNS acknowledgment to 
work properly.

 

Please let me know if there is any kind of parameter / configuration setting to 
disable the reverse lookup check for the "zookeeper.connect" setting.

 

Unfortunately Im not able to provide any kind of DNS server within the 
productive setup, all services are controlled by their IP.

 

Used Kafka version is *2.2.0*

Thanks for your help.

 

Kind regards,

Christian 

  was:
Hey, 

 

in my setup I try to set several zookeeper nodes within my kafka broker (docker 
container) as fixed IPs.

The line within the +server.properties+ file looks something like:

 
{code:java}
[...]
zookeeper.connect=10.0.0.10:2181,10.0.0.11:2181,10.0.0.12:2181
{code}
 

If I try to start the docker container, the following message appears:
{code:java}
[2021-04-11 19:30:55,673] INFO Initiating client connection, 
connectString=10.0.0.10:2181,10.0.0.11:2181,10.0.0.12:2181 sessionTimeout=6000 
watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$@5b8dfcc1 
(org.apache.zookeeper.ZooKeeper)
[2021-04-11 19:30:55,683] INFO [ZooKeeperClient] Waiting until connected. 
(kafka.zookeeper.ZooKeeperClient) 
[2021-04-11 19:31:01,685] INFO [ZooKeeperClient] Closing. 
(kafka.zookeeper.ZooKeeperClient)
{code}
My network config (netplan) looks like this:

 

 
{code:java}
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: no
      dhcp6: no
      addresses:
        - 10.0.0.100/8
      gateway4: 10.0.0.1
      {code}
 

As soon as I adjust my netplan config:

 
{code:java}
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: no
      dhcp6: no
      addresses:
        - 10.0.0.100/8
      gateway4: 10.0.0.1 
      nameservers:
                    addresses: [10.0.0.150] #Bind9 DNS{code}
 

Everything works. 

 

*Please note,* that the above mentioned DNS Server cannot provide a resolvable 
name for any IP, because there is *no DNS record available* at all.

 

For me it looks like that kafka requires any kind of DNS acknowledgment to work 
properly.

 

Please let me know if there is any kind of parameter / configuration setting to 
disable the reverse lookup check for the "zookeeper.connect" setting.

 

Unfortunately Im not able to provide any kind of DNS server within the 
productive setup, all services are controlled by their IP.

 

Used Kafka version is *2.2.0*

Thanks for your help.

 

Kind regards,

Christian 


> Reverse DNS Lookup on Zookeeper Connect String
> ----------------------------------------------
>
>                 Key: KAFKA-12653
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12653
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 2.2.0
>            Reporter: Christian Köcke
>            Priority: Major
>
> Hey, 
>  
> in my setup I try to set several zookeeper nodes within my kafka broker 
> (docker container) as fixed IPs.
> The line within the +server.properties+ file looks something like:
>  
> {code:java}
> [...]
> zookeeper.connect=10.0.0.10:2181,10.0.0.11:2181,10.0.0.12:2181
> {code}
>  
> If I try to start the docker container, the following message appears:
> {code:java}
> [2021-04-11 19:30:55,673] INFO Initiating client connection, 
> connectString=10.0.0.10:2181,10.0.0.11:2181,10.0.0.12:2181 
> sessionTimeout=6000 
> watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$@5b8dfcc1 
> (org.apache.zookeeper.ZooKeeper)
> [2021-04-11 19:30:55,683] INFO [ZooKeeperClient] Waiting until connected. 
> (kafka.zookeeper.ZooKeeperClient) 
> [2021-04-11 19:31:01,685] INFO [ZooKeeperClient] Closing. 
> (kafka.zookeeper.ZooKeeperClient)
> {code}
> My network config (netplan) looks like this:
>  
>  
> {code:java}
> network:
>   version: 2
>   renderer: networkd
>   ethernets:
>     ens160:
>       dhcp4: no
>       dhcp6: no
>       addresses:
>         - 10.0.0.100/8
>       gateway4: 10.0.0.1
>       {code}
>  
> As soon as I adjust my netplan config:
>  
> {code:java}
> network:
>   version: 2
>   renderer: networkd
>   ethernets:
>     ens160:
>       dhcp4: no
>       dhcp6: no
>       addresses:
>         - 10.0.0.100/8
>       gateway4: 10.0.0.1 
>       nameservers:
>                     addresses: [10.0.0.150] #Bind9 DNS{code}
>  
> Everything works. 
>  
> *Please note,* that the above mentioned DNS Server cannot provide a 
> resolvable name for any IP, because there is *no DNS record available* at all.
>  
> For me it looks like that kafka requires some kind of DNS acknowledgment to 
> work properly.
>  
> Please let me know if there is any kind of parameter / configuration setting 
> to disable the reverse lookup check for the "zookeeper.connect" setting.
>  
> Unfortunately Im not able to provide any kind of DNS server within the 
> productive setup, all services are controlled by their IP.
>  
> Used Kafka version is *2.2.0*
> Thanks for your help.
>  
> Kind regards,
> Christian 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to