Microservice for importing from source and feeding a pipe.
The service is based on the pipe-connector library. Any configuration applicable for the pipe-connector can also be used for this service.
Requirements:
- Git
- Maven 3
- Java 11
$ git clone https://github.com/piveau-data/piveau-consus-importing-ckan.git
$ cd piveau-consus-importing-ckan
$ mvn package
$ java -jar target/piveau-importing-ckan-far.jar
Build docker image:
$ docker build -t piveau/piveau-importing-ckan .
Run docker image:
$ docker run -it -p 8080:8080 piveau/piveau-importing-ckan
mandatory
-
address
Address of the source
-
catalogue
The id of the target catalogue
optional
-
dialect
The API dialect. Either
ckan
ordkan
. Default isckan
-
pageSize
Default value is
100
-
incremental
Requires
lastRun
set in pipe header -
filters
A map of key value pairs to filter datasets
-
sendListDelay
The delay in milliseconds before the list of identifiers is send. Take precedence over service configuration (see
PVEAU_IMPORTING_SEND_LIST_DELAY
) -
sendHash
Append a hash value to the dataInfo object. Default is
false
-
pulse
The pulse in milliseconds for emitting datasets into the pipe. Default is no pulse.
-
total
Total number of datasets
-
counter
The number of this dataset
-
identifier
The unique identifier in the source of this dataset
-
catalogue
The id of the target catalogue
See also pipe-connector
Variable | Description | Default Value |
---|---|---|
PIVEAU_IMPORTING_SEND_LIST_DELAY |
The delay in millisecond for sending the identifier list after the last dataset | 8000 |
See logback documentation for more details
Variable | Description | Default Value |
---|---|---|
PIVEAU_PIPE_LOG_APPENDER |
Configures the log appender for the pipe context | STDOUT |
PIVEAU_LOGSTASH_HOST |
The host of the logstash service | logstash |
PIVEAU_LOGSTASH_PORT |
The port the logstash service is running | 5044 |
PIVEAU_PIPE_LOG_PATH |
Path to the file for the file appender | logs/piveau-pipe.%d{yyyy-MM-dd}.log |
PIVEAU_PIPE_LOG_LEVEL |
The log level for the pipe context | INFO |
PIVEAU_LOG_LEVEL |
The general log level for the io.piveau package |
INFO |