Before setting up the ETLP-BASE boilerplate repository, ensure you have the following installed:
- Java Development Kit (JDK):
- You need to have Java installed on your system. Follow the official Java installation guide to install JDK.
-
Install Clojure:
- Clojure runs on the Java Virtual Machine (JVM). Follow the official Clojure installation guide to set up Clojure on your system.
-
Install Leiningen:
- Leiningen is a build automation tool for Clojure projects. Follow the instructions on the Leiningen website to install it on your system.
-
Clone the Repository:
- Clone the ETLP-BASE repository from GitHub to your local machine.
-
Copy Environment Template:
- Locate the
env.tpl
file in the repository root. - Create a new file named
.env
by copyingenv.tpl
. - Update the variables in
.env
file according to your ETLP-Mapper configurations.
- Locate the
-
Clone ETLP Mapper serivce
- Clone the
etlp-mapper
from GitHub to your local machine. - Follow the instructions on the above serivce to setup and run locally.
- Clone the
-
Quick Start
- A quick start tutorial, which illustrate how to utilize ETLP Smart Data Connectors to process CSV files using a low code data transformation logic.
-
Setup Project:
- Run the
./bin/setup.sh
script in the repository root to set up the project dependencies.
- Run the
-
Running the Data Connector:
- Use the following command to run the data connector:
./bin/etl --threads 2 csv-stream
- This command starts the data connector with 2 threads, listening for CSV rows on stdin, and applying Jute-based transformations to the data.
- You can adjust the number of threads as per your requirements.
- Use the following command to run the data connector:
git clone https://github.com/your-repo-url.git
cd etlp-base
cp env.tpl .env
# Update variables in .env file
./bin/setup.sh
cat ~/Downloads/input.csv |./bin/etl --threads 1 csv-stream
Follow these steps to set up and run the ETLP-BASE boilerplate repository on your local machine. Customize the environment variables and configurations as needed for your ETLP-Mapper setup.
Copyright © 2024 Rahul Gaur
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.