streamsets / tutorials

StreamSets Tutorials
Apache License 2.0
348 stars 192 forks source link

'Creating a Custom StreamSets Destination' tutorial problems #108

Closed JamesTreleaven closed 5 years ago

JamesTreleaven commented 5 years ago

I wish to create a 'StreamSets Destination' to interface with my firms software, so I am walking through the 'Creating a Custom StreamSets Destination' tutorial. When I get to the 'Extract the tarball to SDC’s user-libs directory, restart SDC, and you should see the sample stages in the stage library' step ... I don't see 'Sample' or 'sample' listed in the 'Select Destination to connect' dropdown.

Some details:

JamesTreleaven commented 5 years ago

Additionally, I am working on Ubuntu 18.04 with Java version 1.8.0_191.

metadaddy commented 5 years ago

Hi @JamesTreleaven - did you set archetypeVersion in the mvn archetype:generate command to 3.7.1?

metadaddy commented 5 years ago

I think I figured out your problem, @JamesTreleaven. You copied the jar file to ~/work/datacollector/dist/target/streamsets-datacollector-3.7.1/streamsets-datacollector-3.7.1/user-libs rather than extracting the tarball (as mentioned in the tutorial). The jar needs to be in a specific directory path under the user-libs directory for Data Collector to pick it up. You can fix this by doing:

mkdir -p ~/work/datacollector/dist/target/streamsets-datacollector-3.7.1/streamsets-datacollector-3.7.1/user-libs/samplestage/lib
mv ~/work/datacollector/dist/target/streamsets-datacollector-3.7.1/streamsets-datacollector-3.7.1/user-libs/samplestage-1.0-SNAPSHOT.jar ~/work/datacollector/dist/target/streamsets-datacollector-3.7.1/streamsets-datacollector-3.7.1/user-libs/samplestage/lib/samplestage-1.0-SNAPSHOT.jar
JamesTreleaven commented 5 years ago

Thank you very much @metadaddy, the fix you provided has solved my problem. My apologies - I should have followed the instructions more closely!

metadaddy commented 5 years ago

No worries, @JamesTreleaven!