Service Locator installation as an OSGi bundle - 8.0

Talend ESB Development Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Last publication date
2024-03-13

Procedure

  1. You first need to start the Talend Runtime Container and start the Service Locator feature via the tesb:start-locator. For more information on how to start them, see Starting Service Locator and Starting and stopping the Authorization service in the Talend Runtime Container.
  2. Once the Service Locator feature started, a container/etc/org.talend.esb.locator.server.cfg configuration file is created. It is the Talend ESB equivalent to the Zookeeper zoo.cfg configuration file.
    Edit it and change the settings as follows:
    tickTime=2000 
    dataDir=./var/locator 
    clientPort=2181
    • The tickTime refers to the basic unit of time measurement used by ZooKeeper, used for later configuration of timeouts and other parameters.

    • The dataDir holds database snapshots and transaction logs. Check the ZooKeeper Administration Manual for information on all possible parameters.

    • The clientPort number should be same as the endpointPrefix defined in LocatorFeature above.

  3. The ZooKeeper AdminServer is disabled by default with JVM parameters. To enable this feature, edit <TalendRuntimePath>/bin/setenv or <TalendRuntimePath>/addbin/setenv.bat as follows and set the proper available port.
    -Dzookeeper.admin.enableServer=true Dzookeeper.admin.serverPort=<AVAILABLE PORT>
    For more information on the ZooKeeper AdminServer, see the ZooKeeper AdminServer configuration.
    Note: If Talend Runtime is installed as a service, the service's wrapper configuration file must be updated to include the JVM Parameters. For example:
    wrapper.java.additional.XX=-Dzookeeper.admin.enableServer=true 
    wrapper.java.additional.XX=-Dzookeeper.admin.serverPort=9090 
    where "XX" should be the next integer in the series.
  4. Restart the Container.