README.md 789 Bytes
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
2
## SFTP Reader & Validator

Jonas Waeber's avatar
Jonas Waeber committed
3
4
Checks the files present in the `app.directory` folder on the sFTP server.

Jonas Waeber's avatar
Jonas Waeber committed
5
6
[Confluence Doku](https://memobase.atlassian.net/wiki/spaces/TBAS/pages/29196525/Service%2BsFTP%2BReader%2BValidator)

Jonas Waeber's avatar
Jonas Waeber committed
7
8
9
10
11
### Current Features

- Check if files are CSV or TSV
- Check if CSV and TSV files are formatted correctly.

Jonas Waeber's avatar
Jonas Waeber committed
12
13
### Requirements 

Jonas Waeber's avatar
Jonas Waeber committed
14
- Execute command `./gradlew addKtlintFormatGitPreCommitHook`
Jonas Waeber's avatar
Jonas Waeber committed
15
16
17
18
19

### Configuration

```yaml
sftp:
Jonas Waeber's avatar
Jonas Waeber committed
20
21
22
23
  host: localhost
  port: 22000
  user: user
  password: password
Jonas Waeber's avatar
Jonas Waeber committed
24
app:
Jonas Waeber's avatar
Jonas Waeber committed
25
  directory: /memobase/test_institution_1/test_record_set_1
Jonas Waeber's avatar
Jonas Waeber committed
26
27
kafka:
  producer:
Jonas Waeber's avatar
Jonas Waeber committed
28
    bootstrap.servers: localhost:12345
Jonas Waeber's avatar
Jonas Waeber committed
29
    client.id: sftp-reader-p1-j1
Jonas Waeber's avatar
Jonas Waeber committed
30
    value.serializer: "org.apache.kafka.common.serialization.StringSerializer"
Jonas Waeber's avatar
Jonas Waeber committed
31
  topic:
Jonas Waeber's avatar
Jonas Waeber committed
32
    out: sftp-reader-p1-j1
Jonas Waeber's avatar
Jonas Waeber committed
33
34
```