Ignite Summit 2025 — Watch on demand 

Edit

ZooKeeper IP Finder Extension

Note
Not supported in .NET/C#.

Apache Ignite ZooKeeper Ip Finder module provides a TCP Discovery IP Finder that uses a ZooKeeper directory to locate other Ignite nodes to connect to.

Install

Depending on how you use Ignite, you can an extension using one of the following methods:

  • If you use the binary distribution, move the ignite-zookeeper-ip-finder-ext to the lib directory before starting the node.

  • Add libraries from ignite-zookeeper-ip-finder-ext to the classpath of your application.

  • Add a module as a Maven dependency to your project.

Configuration

To set up ZooKeeper IP finder use TcpDiscoveryZookeeperIpFinder:

<bean class="org.apache.ignite.configuration.IgniteConfiguration">
    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="ipFinder">
                <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.zk.TcpDiscoveryZookeeperIpFinder">
                    <property name="zkConnectionString" value="127.0.0.1:2181"/>
                </bean>
            </property>
        </bean>
    </property>
</bean>

The module depends on third-party libraries that use the slf4j facade for logging. You can set up an underlying logging framework yourself.