To install stage libs using the CLI or Package Manager UI you'll need to create a volume for the stage libs directory. It's also recommended to use a volume for the data directory at a minimum.
docker volume create --name sdc-stagelibs
docker volume create --name sdc-data
The volume needs to then be mounted to the correct directory when launching the container.
docker run --name sdc -d -v sdc-stagelibs:/opt/streamsets-datacollector-2.1.0.2/streamsets-libs -v sdc-data:/data -P streamsets/datacollector dc -verbose
To get a list of available libs you could do:
docker run --rm streamsets/datacollector:2.1.0.2 stagelibs -list
To install say, the JDBC lib to the sdc-stagelibs volume you created above, you would run:
docker run --rm -v sdc-stagelibs:/opt/streamsets-datacollector-2.1.0.2/streamsets-libs streamsets/datacollector:2.1.0.2 stagelibs -install=streamsets-datacollector-jdbc-lib
Adam Kunicki
October 28, 2020 08:51