You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Data streamed to HDFS using the [RADAR HDFS sink connector](https://github.com/R
8
8
9
9
This package is available as docker image [`radarbase/radar-hdfs-restructure`](https://hub.docker.com/r/radarbase/radar-hdfs-restructure). The entrypoint of the image is the current application. So in all of the commands listed in usage, replace `radar-hdfs-restructure` with for example:
By default, files records are not deduplicated after writing. To enable this behaviour, specify the option `--deduplicate` or `-d`. This set to false by default because of an issue with Biovotion data. Please see - [issue #16](https://github.com/RADAR-base/Restructure-HDFS-topic/issues/16) before enabling it.
61
61
62
-
Finally, while processing, files are staged to a temporary directory and moved to the output directory afterwards. This has the advantage of less chance of data corruption, but it may result in slower performance. Disable staging using the `--no-stage` option.
62
+
## Extending the connector
63
+
64
+
To implement alternative storage paths, storage drivers or storage formats, put your custom JAR in
65
+
`$APP_DIR/lib/radar-hdfs-plugins`. To load them, use the following options:
|`--storage-driver`|`org.radarcns.hdfs.data.StorageDriver`| Storage driver to use for storing data. | LocalStorageDriver |
71
+
|`--format-factory`|`org.radarcns.hdfs.data.FormatFactory`| Factory for output formats. | FormatFactory |
72
+
|`--compression-factory`|`org.radarcns.hdfs.data.CompressionFactory`| Factory class to use for data compression. | CompressionFactory |
73
+
74
+
To pass arguments to self-assigned plugins, use `-p arg1=value1 -p arg2=value2` command-line flags and read those arguments in the `Plugin#init(Map<String, String>)` method.
0 commit comments