Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

piveau-data/piveau-consus-importing-ckan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piveau importing ckan

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.

Table of Contents

  1. Build
  2. Run
  3. Docker
  4. Configuration
    1. Pipe
    2. Data Info Object
    3. Environment
    4. Logging
  5. License

Build

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

Run

$ java -jar target/piveau-importing-ckan-far.jar

Docker

Build docker image:

$ docker build -t piveau/piveau-importing-ckan .

Run docker image:

$ docker run -it -p 8080:8080 piveau/piveau-importing-ckan

Configuration

Pipe

mandatory

  • address

    Address of the source

  • catalogue

    The id of the target catalogue

optional

  • dialect

    The API dialect. Either ckanor dkan. Default is ckan

  • 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.

Data Info Object

  • 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

Environment

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

Logging

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

License

Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published