Balaji Seetharaman
05/26/2024, 4:21 PMkapa.ai
05/26/2024, 4:21 PMBalaji Seetharaman
05/26/2024, 4:22 PMkapa.ai
05/26/2024, 4:22 PMbash
cd airbyte-integrations/connector-templates/generator # assumes you are starting from the root of the Airbyte project.
./generate.sh
Select the Java Destination template and then input the name of your connector. We'll refer to the destination as <name>-destination in this tutorial, but you should replace <name> with the actual name you used for your connector, e.g., BigQueryDestination or bigquery-destination.
### Step 2: Build the Newly Generated Destination
Once you have generated the scaffolding, you need to build the destination.
bash
./gradlew :airbyte-integrations:connectors:<name>-destination:build
### Step 3: Implement spec
Define the configuration required to run the connector.
### Step 4: Implement check
Provide a way to validate configurations provided to the connector.
### Step 5: Implement write
Write data to the destination.
### Step 6: Set Up Acceptance Tests
Ensure your destination works as expected by setting up acceptance tests.
### Step 7: Write Unit Tests or Integration Tests
Add tests to verify the functionality of your destination.
### Step 8: Update the Documentation
Update the documentation in docs/integrations/destinations/<destination-name>.md.
### Additional Steps for Testing
To test your destination end-to-end, you can build and run the entire Airbyte platform:
bash
SUB_BUILD=PLATFORM ./gradlew build
Then, start up Airbyte in development mode:
bash
# Start Airbyte server
airbyte-server |
airbyte-server | ___ _ __ __
airbyte-server | / | (_)____/ /_ __ __/ /____
airbyte-server | / /| | / / ___/ __ \/ / / / __/ _ \
airbyte-server | / ___ |/ / / / /_/ / /_/ / /_/ __/
airbyte-server | /_/ |_/_/_/ /_.___/\__, /\__/\___/
airbyte-server | /____/
airbyte-server | : airbyte-server :
airbyte-server | --------------------------------------------------
airbyte-server | Will soon be available at <http://localhost:8000/>
airbyte-server | --------------------------------------------------
Go to [localhost:8000](http://localhost:8000/) to see the Airbyte UI. You should see your new connector in the destinations list.
For more detailed steps, you can refer to the [Airbyte documentation on building a Java destination](https://docs.airbyte.com/connector-development/tutorials/building-a-java-destination).kapa.ai
05/26/2024, 4:22 PMbash cd airbyte-integrations/connector-templates/generator # assumes you are starting from the root of the Airbyte project. ./generate.sh Select the Java Destination template and then input the name of your connector. We'll refer to the destination as <name>-destination in this tutorial, but you should replace <name> with the actual name you used for your connector, e.g., BigQueryDestination or bigquery-destination. ### Step 2: Build the Newly Generated Destination Once you have generated the scaffolding, you need to build the destination. bash ./gradlew :airbyte-integrations:connectors:<name>-destination:build ### Step 3: Implement spec Define the configuration required to run the connector. ### Step 4: Implement check Provide a way to validate configurations provided to the connector. ### Step 5: Implement write Write data to the destination. ### Step 6: Set Up Acceptance Tests Ensure your destination works as expected by setting up acceptance tests. ### Step 7: Write Unit Tests or Integration Tests Add tests to verify the functionality of your destination. ### Step 8: Update the Documentation Update the documentation in docs/integrations/destinations/<destination-name>.md. ### Additional Steps for Testing To test your destination end-to-end, you can build and run the entire Airbyte platform: bash SUB_BUILD=PLATFORM ./gradlew build Then, start up Airbyte in development mode: bash # Start Airbyte server airbyte-server | airbyte-server | ___ _ __ __ airbyte-server | / | (_)____/ /_ __ __/ /____ airbyte-server | / /| | / / ___/ __ \/ / / / __/ _ \ airbyte-server | / ___ |/ / / / /_/ / /_/ / /_/ __/ airbyte-server | /_/ |_/_/_/ /_.___/\__, /\__/\___/ airbyte-server | /____/ airbyte-server | : airbyte-server : airbyte-server | -------------------------------------------------- airbyte-server | Will soon be available at <http://localhost:8000/> airbyte-server | -------------------------------------------------- Go to [localhost:8000](http://localhost:8000/) to see the Airbyte UI. You should see your new connector in the destinations list. For more detailed steps, you can refer to the [Airbyte documentation on building a Java destination](https://docs.airbyte.com/connector-development/tutorials/building-a-java-destination). If you need help with any step of the process, feel free to submit a PR with your progress and any questions you have, or ask on [Airbyte's Slack](https://slack.airbyte.io). ### References - [Building a Java Destination](https://docs.airbyte.com/connector-development/tutorials/building-a-java-destination) - [Creating a Python Destination (DuckDB)](https://airbyte.com/tutorials/creating-duckdb-destination-with-python)