Skip to content

Installation

This section helps you choose how to install InfoConnect for Kafka and walks you through the installation. Check the prerequisites first.

InfoConnect for Kafka is a set of connectors that run in Kafka Connect workers. The workers interact with the Kafka broker, the core event streaming infrastructure that operates topics, Schema Registry, and other services.

Choose a deployment option

Option Use it when Where to read
Existing Kafka Connect You already run Kafka brokers and Kafka Connect workers. Existing Kafka broker and Kafka Connect
New Kafka Connect, existing broker You use Kafka topics and Schema Registry but not Kafka Connect yet. Existing Kafka broker, no Kafka Connect
Confluent Cloud You run fully managed Kafka in Confluent Cloud and upload the connector as a custom connector. Confluent Cloud custom connector
No Kafka yet You want to evaluate the connector and have no Kafka services. No Kafka broker or Kafka Connect
Sample Docker setup You want a single-host sandbox with the broker, Schema Registry, Kafka Connect, Control Center and the connector. Sample stand-alone Confluent Docker setup

Downloading the connector

Download the connector from Confluent Hub, even if you use a different Kafka flavor. Download the self-managed Confluent Platform connector ZIP file from that page. Separately, request a trial license.

If you run Kafka Connect in containers, see your Kafka vendor documentation for how to download and install the connector. If you download the connector automatically from Confluent Hub, for example in a Docker build or a CI/CD script, make sure the firewall rules allow downloads from Confluent Hub.

To try the connector together with change data capture or data replication tools, request the InfoCDC installation package and license in addition to the connector. See the InfoCDC documentation for installation and configuration.

Existing Kafka broker and Kafka Connect

Install InfoConnect for Kafka into your existing Kafka Connect environment. Confluent customers can follow the Confluent connector installation instructions, using the Confluent CLI or a manual installation of the downloaded connector. The process is similar for other Kafka vendors and platforms.

You may have to restart the Kafka Connect workers so that they discover the new connector. Then configure the IBM i connector operations.

Existing Kafka broker, no Kafka Connect

If you already use Kafka foundation services (such as Kafka topics and Schema Registry) but not Kafka Connect, follow your Kafka vendor instructions to set up a minimal Kafka Connect configuration. For example, Confluent customers can use the Confluent Kafka Connect quick start. The simplest option is stand-alone mode in a development environment.

When Kafka Connect is running and can reach the Kafka broker, download and install the connector as described above. Then configure the IBM i connector operations.

Confluent Cloud custom connector

To upload the connectors to Confluent Cloud as custom connectors:

  1. Download the connector plugin. Download the AS400 connector plugin from Confluent Hub.
  2. Upload the connector. In your Confluent Cloud account, go to Connectors and click Add plugin.

    Connector Plugins page in Confluent Cloud with the Add plugin button highlighted

    Fill in the requested details, upload the downloaded plugin ZIP file in the Select connector archive section, and click Submit. Use the following details for each connector:

    Connector Plugin name and description Connector class Type
    AS400 Data Queue Source Connector AS400 Data Queue Source Connector com.infoviewsystems.kafka.connect.as400.core.AS400SourceConnector Source
    AS400 Data Queue Sink Connector AS400 Data Queue Sink Connector com.infoviewsystems.kafka.connect.as400.core.AS400DataQueueSinkConnector Sink
    AS400 Program Call Sink Connector AS400 Program Call Sink Connector com.infoviewsystems.kafka.connect.as400.core.AS400ProgramCallSinkConnector Sink

    All three connectors are in a single ZIP file. You can use this file to upload all of them.

    Add Custom Connector plugin page in Confluent Cloud with the plugin name, description, connector class, and type

  3. Configure the connector. After the upload, configure the connector in the Confluent Cloud UI. Provide the required configuration properties, such as connector.class, key.converter, value.converter, and any other properties that your IBM i setup needs. For the properties of each connector, see Connector operations.

No Kafka broker or Kafka Connect

If you do not operate any Kafka services, the easiest way to evaluate IBM i connectivity is to run the Kafka broker and Kafka Connect in a single environment. Follow the quick start guide of your preferred Kafka edition and vendor, for example:

We recommend the simplest stand-alone configuration for the initial trial. Our engineering team can help you choose the topology and deployment model for the Kafka brokers and Kafka Connect components that fits your evaluation and your production target state.

When the Kafka broker and Kafka Connect are running, install the connector as described above. Then configure the IBM i connector operations.

If you run other messaging and middleware platforms, consider InfoConnect Hub. It is a self-contained, simplified IBM i integration component that surfaces IBM i business logic as REST APIs and supports the most popular messaging stacks. Contact us to discuss the best option.

Sample stand-alone Confluent Docker setup

The following procedure is one way to quickly set up the Kafka broker, Schema Registry, Kafka Connect, and the InfoConnect IBM i connectors with Confluent Platform components. Depending on your host OS and configuration, you may have to adjust the setup, for example to specify the fully qualified path to the license and truststore folder.

  1. Install Docker and review the sample Docker Compose file.
  2. Download the InfoConnect license file as400-license.lic to a local directory and map it to /opt/, for example:

    /home/ubuntu/license/:/opt/
    
  3. Download and start all prerequisite components:

    docker-compose up -d
    

    Verify that all services are running:

    docker-compose ps -a
    

    Output of docker-compose ps -a listing the running services

  4. Verify that the license is copied to the /opt/ folder of the Docker image. Open a shell in the connect container:

    docker exec -it connect bash
    

    In the container shell, list the folder:

    cd /opt/
    
    ls -l
    

    The license file appears in the list, as in the following screenshot.

    Listing of the /opt/ folder in the connect container showing the license file

  5. Verify that the connector is installed. In the container shell, run:

    cd /usr/share/confluent-hub-components/
    
    ls -l
    

    The IBM i connector appears in the list, as in the following screenshot.

    Listing of the confluent-hub-components folder showing the IBM i connector

  6. Open Confluent Control Center at http://<environment-host>:9021. The connector list shows the AS400 Data Queue Source and Sink connectors and the Program Call Sink connector, as in the following screenshot.

    Confluent Control Center connector list showing the Data Queue Source, Data Queue Sink, and Program Call Sink connectors

What you need after the installation

Next steps