<commit_before># Database dump to HDFS Sync application

## Summary

Ingest records from a PostgreSQL Database table to hadoop HDFS. This application reads messages from configured PostgreSQL table and writes each record as a comma-separated line in HDFS files.

The source code is available at:
[https://github.com/DataTorrent/app-templates/tree/master/database-to-hdfs](https://github.com/DataTorrent/app-templates/tree/master/database-to-hdfs).

Please send feedback or feature requests to: [<EMAIL>](mailto:<EMAIL>)

This document has a step-by-step guide to configure, customize, and launch this application.

## <a name="steps_to_launch">Steps to launch application</a>

1. Click on the AppHub tab from the top navigation bar.
   ![AppHub link from top navigation bar](images/common/apphub_link.png)

1. Page listing the applications available on AppHub is displayed.
Search for Database to see all applications related to Database.
   ![AppHub search for Database](images/database-to-hdfs/apphub-search.png)

    Click on import button for `Database dump to HDFS Sync App`

1. Notification is displayed on the top right corner after application package is successfully imported.
   ![App import Notification](images/database-to-hdfs/import-notification.png)

1. Click on the link in the notification which navigates to the page for this application package.
   ![App details page](images/database-to-hdfs/app-details-page.png)

    Detailed information about the application package like version, last modified time, and short description is available on this page. Click on launch button for `Database-to-HDFS-Sync` application.

1. <a name="launch-dialogue"></a>`Launch Database-to-HDFS-Sync` dialogue is displayed. One can configure the name of this instance of the application from this dialogue.
   ![Launch dialogue](images/database-to-hdfs/launch.png)

1. Select `Use saved configuration` option to display a list of pre-saved configurations.<commit_msg>Update database-to-hdfs.md<commit_after># Database dump to HDFS Sync application

## Summary

Ingest records from a PostgreSQL Database table to hadoop HDFS. This application reads messages from configured PostgreSQL table and writes each record as a comma-separated line in HDFS files.

The source code is available at:
[https://github.com/DataTorrent/app-templates/tree/master/database-to-hdfs](https://github.com/DataTorrent/app-templates/tree/master/database-to-hdfs).

Please send feedback or feature requests to: [<EMAIL>](mailto:<EMAIL>)

This document has a step-by-step guide to configure, customize, and launch this application.

## <a name="steps_to_launch">Steps to launch application</a>

1. Click on the AppFactory tab from the top navigation bar.
   ![AppHub link from top navigation bar](images/common/apphub_link.png)

1. Page listing the applications available on AppFactory is displayed.
Search for Database to see all applications related to Database.
   ![AppHub search for Database](images/database-to-hdfs/apphub-search.png)

    Click on import button for `Database dump to HDFS Sync App`

1. Notification is displayed on the top right corner after application package is successfully imported.
   ![App import Notification](images/database-to-hdfs/import-notification.png)

1. Click on the link in the notification which navigates to the page for this application package.
   ![App details page](images/database-to-hdfs/app-details-page.png)

    Detailed information about the application package like version, last modified time, and short description is available on this page. Click on launch button for `Database-to-HDFS-Sync` application.

1. <a name="launch-dialogue"></a>`Launch Database-to-HDFS-Sync` dialogue is displayed. One can configure the name of this instance of the application from this dialogue.
   ![Launch dialogue](images/database-to-hdfs/launch.png)

1. Select `Use saved configuration` option to display a list of pre-saved configurations.
{'fraction_non_alphanumeric': 0.08061662875916098, 'fraction_numerical': 0.003032600454890068, 'mean_word_length': 4.74455732946299, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '234978', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1027, 'n_words': 444}