hazelcast / hz-docs

Source content for the Hazelcast Platform documentation
10 stars 95 forks source link

Docs: Feedback for Get Started with Stream Processing (Client/Server) #696

Open 7erry opened 1 year ago

7erry commented 1 year ago

Hi, I have some feedback about this page

the follow step is either unclear or wrong: docker run -it --network hazelcast-network -v $PATH_TO_TARGET:/jars --rm hazelcast/hazelcast:5.2.3 hz-cli -t $MEMBER_IP submit -c org.example.EvenNumberStream /jars/hz-example-0.1.0.jar

what is /jars since it's not explained nor does it work in my environment: twal7ers@HZLCST-MBP-106 jet-play % docker run -it --network hazelcast-network -v /Users/twal7ers/Documents/projects/git/jet-play/target/jet-play-1.0-SNAPSHOT.jar:/jars --rm hazelcast/hazelcast:5.2.3 hz-cli -t 192.168.50.164 submit -c demo.hazelcast.App /jars/jet-play-1.0-SNAPSHOT.jar ERROR: File /jars/jet-play-1.0-SNAPSHOT.jar could not be found.

To see the full stack trace, re-run with the -v/--verbosity option twal7ers@HZLCST-MBP-106 jet-play % ls -l /Users/twal7ers/Documents/projects/git/jet-play/target/jet-play-1.0-SNAPSHOT.jar -rw-r--r-- 1 twal7ers staff 3882 Mar 28 11:16 /Users/twal7ers/Documents/projects/git/jet-play/target/jet-play-1.0-SNAPSHOT.jar

Serdaro commented 1 year ago

Hello @7erry , In that step of the content, after you do mvn package to package code into a JAR file, a target directory should be created on your local. I thought by /jars, it means the subdirectory in which the JAR file is residing. Which now I think is a typo.

I am guessing your command should look like as follows:

docker run -it --network hazelcast-network -v /Users/twal7ers/Documents/projects/git/jet-play/target/ --rm hazelcast/hazelcast:5.2.3 hz-cli -t 192.168.50.164 submit -c demo.hazelcast.App /Users/twal7ers/Documents/projects/git/jet-play/target/jet-play-1.0-SNAPSHOT.jar

Could you please try and let me know? I will update the docs accordingly then.