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
- 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.gzand replace X.Y.Z with the current version. - Extract the archive to a directory that is in your PATH, such as
/usr/local/bin. Usetar -xzf conduit-vX.Y.Z-linux-amd64.tar.gz -C /usr/local/binand then rename the extracted folder toconduitfor easier reference. - Create a working directory for your pipeline configuration, e.g.,
mkdir ~/conduit-demoandcd ~/conduit-demo. Inside this directory you will place the JSON configuration file. - Generate a minimal configuration file named
config.jsonusing 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": {} } } } - Validate the configuration with the built‑in validator:
conduit validate config.json. The tool will report any syntax errors or missing required fields. - 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. - Open a second terminal and run
conduit statusto confirm the pipeline is running. The output will show the number of records processed and any errors. - To stop the pipeline, press
Ctrl+Cin 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_OPTSorGOMEMLIMITenvironment 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-levelflag to set the verbosity of logs. For production useinfoorwarnto reduce noise. - Run Conduit inside a
systemdservice 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
checkpointdirectory in the configuration to allow the pipeline to resume from the last processed record after a crash. - Use the
--dry-runoption to preview the pipeline’s behavior without actually moving data.
Troubleshooting
If Conduit does not start or data does not flow, follow these steps:
- Check the console output for error messages. Common errors include “connection refused” or “invalid credentials.”
- Verify that the source database is reachable from the machine running Conduit. Use
pingortelnetto test connectivity on the configured port. - Inspect the log file located in the same directory as the configuration. Look for stack traces that indicate connector failures.
- 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.
- Run
conduit validate config.jsonagain after making any changes. The validator will catch missing fields or type mismatches. - 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.
- 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.