I thought it would be worthwhile to capture my experience, in brief, under a 
topic heading that indicates the specific subject; especially for someone (like 
me) looking for this basic information.

Following Edward's suggestion. I watched the video: Apache Gossip Peer to Peer 
Communications
 <https://www.youtube.com/watch?v=bZXZrp7yBkw&t=39s>And was able to get the 
example to run, after fixing some dependency problems, that seem to be a 
consequence of the split of gossip into multiple modules. 

First I tired running the demo (extrapolating from the video) with these 
commands:
cd gossip-base
mvn exec:java -Dexec.mainClass=org.apache.gossip.examples.StandAloneNode 
-Dexec.args="udp://localhost:10000 0 udp://localhost:10000 0”
 
But this resulted in a coupe of class not found errors which I had to resolve 
by including, in the pom.xml file, dependencies on other modules: 
  <dependency>
    <groupId>org.apache.gossip</groupId>
    <artifactId>gossip-protocol-jackson</artifactId>
    <version>0.1.3-incubating-SNAPSHOT</version>
  </dependency>
  <dependency>
    <groupId>org.apache.gossip</groupId>
    <artifactId>gossip-transport-udp</artifactId>
    <version>0.1.3-incubating-SNAPSHOT</version>
  </dependency>
Which did not seem like a good idea in general.

So, my solution was to create an empty maven project, gossip-tutorial, and then 
add the above dependencies to its pom.xml file. At which point I was able to 
run the commands:
cd gossip-tutorial
mvn exec:java -Dexec.mainClass=org.apache.gossip.examples.StandAloneNode 
-Dexec.args="udp://localhost:10000 0 udp://localhost:10000 0”
 
And the example ran, as shown in the video. From there following the rest of 
the video was straight forward.

See: 
https://github.com/Terry-Weymouth/gossip-tutorial/tree/basic-working-example 
<https://github.com/Terry-Weymouth/gossip-tutorial/tree/basic-working-example>


Reply via email to