Curious Minds

Clear answers to science and history questions

Run Conduit: A Complete Step‑by‑Step Guide

· 4 min read · Science

Running Conduit is the quickest way to launch a fully‑featured data pipeline that can ingest, transform, and export data between any number of sources and destinations. By following this guide you’ll install the binary, configure a minimal pipeline, start the service, and confirm that data flows correctly.

What You’ll Need

  • A machine with a 64‑bit operating system (Linux, macOS, or Windows).
  • At least 2 GB of free RAM and 1 GB of free disk space for the runtime and logs.
  • Internet access to download the Conduit release and any connector dependencies.
  • Administrative or root privileges to install packages and write to system directories.
  • An editor such as nano, vim, or VS Code to edit configuration files.

Step‑by‑Step

  1. Download the latest Conduit binary from the official GitHub releases page. Choose the tarball that matches your operating system and architecture. For example, on Linux use wget https://github.com/conduitio/conduit/releases/download/vX.Y.Z/conduit-vX.Y.Z-linux-amd64.tar.gz and replace X.Y.Z with the current version.
  2. Extract the archive to a directory that is in your PATH, such as /usr/local/bin. Use tar -xzf conduit-vX.Y.Z-linux-amd64.tar.gz -C /usr/local/bin and then rename the extracted folder to conduit for easier reference.
  3. Create a working directory for your pipeline configuration, e.g., mkdir ~/conduit-demo and cd ~/conduit-demo. Inside this directory you will place the JSON configuration file.
  4. Generate a minimal configuration file named config.json using the following template. Replace placeholder values with your own connection details.
    {
      "pipeline": {
        "name": "demo-pipeline",
        "source": {
          "type": "mysql",
          "config": {
            "host": "localhost",
            "port": 3306,
            "user": "root",
            "password": "secret",
            "database": "testdb"
          }
        },
        "transformers": [],
        "destination": {
          "type": "stdout",
          "config": {}
        }
      }
    }
  5. Validate the configuration with the built‑in validator: conduit validate config.json. The tool will report any syntax errors or missing required fields.
  6. Start the Conduit service in the foreground: conduit run config.json. You should see startup logs that indicate the source and destination connectors are initialized.
  7. Open a second terminal and run conduit status to confirm the pipeline is running. The output will show the number of records processed and any errors.
  8. To stop the pipeline, press Ctrl+C in the terminal where Conduit is running. The service will flush any buffered records and exit cleanly.

Common Mistakes

Even small oversights can stop Conduit from working. The most frequent issues include:

  • Using the wrong binary for the operating system, which results in an “exec format error.” Always match the OS and architecture.
  • Incorrect file permissions on the configuration file, causing the validator to fail. Ensure the file is readable by the user running Conduit.
  • Omitting required fields such as the database password or destination type. The validator will flag these, but a missing field can also cause runtime failures.
  • Running Conduit with insufficient memory; the default heap size may be too low for large pipelines. Increase the JAVA_OPTS or GOMEMLIMIT environment variable if you encounter out‑of‑memory errors.
  • Not exposing the source port or firewall blocking the connection. Verify network connectivity before starting the pipeline.

Tips

Small adjustments can improve stability and performance:

  • Use the --log-level flag to set the verbosity of logs. For production use info or warn to reduce noise.
  • Run Conduit inside a systemd service or Docker container to manage restarts automatically.
  • Enable TLS for source and destination connectors that support encryption, especially when transmitting sensitive data over the network.
  • Configure a checkpoint directory in the configuration to allow the pipeline to resume from the last processed record after a crash.
  • Use the --dry-run option to preview the pipeline’s behavior without actually moving data.

Troubleshooting

If Conduit does not start or data does not flow, follow these steps:

  1. Check the console output for error messages. Common errors include “connection refused” or “invalid credentials.”
  2. Verify that the source database is reachable from the machine running Conduit. Use ping or telnet to test connectivity on the configured port.
  3. Inspect the log file located in the same directory as the configuration. Look for stack traces that indicate connector failures.
  4. Ensure that the destination connector supports the data format produced by the source. For example, a JSON source cannot be written directly to a binary destination without transformation.
  5. Run conduit validate config.json again after making any changes. The validator will catch missing fields or type mismatches.
  6. If the pipeline stalls after processing a few records, check for backpressure on the destination. Some connectors limit the rate of incoming data; increasing the buffer size or adjusting the consumer poll interval may help.
  7. Consult the official Conduit documentation or community forums for known issues with specific connector versions.

Frequently Asked Questions

What operating systems does Conduit support?

Conduit binaries are available for Linux, macOS, and Windows. Each platform has a dedicated release tarball or ZIP file.

Can I run Conduit inside Docker?

Yes. The official Docker image is published on Docker Hub. Use docker run --rm -v $(pwd):/app conduitio/conduit:vX.Y.Z run config.json to run a pipeline inside a container.

How do I add a new connector to my pipeline?

Install the connector plugin by downloading it from the releases page and placing it in the plugins directory. Then reference it in the configuration under the source or destination section.

Is there a way to monitor Conduit in real time?

Conduit exposes a Prometheus metrics endpoint by default. Point a Prometheus server to http://localhost:9090/metrics to collect and visualize pipeline metrics.

What happens if the pipeline crashes?

Conduit writes a checkpoint file that records the last processed record. Restarting the pipeline will resume from that point, preventing duplicate data processing.

In this article
  1. What You’ll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions