-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cassandra Cluster Example Add Check for Null Endpoints (redo2) #5808
Conversation
Assigning to @brendandburns since he added the Cassandra example originally. Brendan - How did you build the jar file? Can we add instructions (or a script) to the repository to make it easier to reproduce as we tweak the example in the future? |
LGTM. javac io/k8s/cassandra/KubernetesSeedProvider.java
jar cf kubernetes-cassandra.jar classes/ I can add a script to build that jar file. Building it requires that you have cassandra installed, I'm not sure we want to add that to our dependency tree. I'm happy to add a script though (or Mike can if he prefers) --brendan |
If you would add the script, and build the jar. The issue I had with building the jar were several dependencies (at least with my setup) that weren't just cassandra. Lead me to believe my setup is different from the original build setup. My .pom deps:
|
Actually, maybe it would be better to add my maven build setup. In that way, there are no direct dependencies on other projects. However, to add this will require a restructure of the java/ subdirectory to conform to maven's preferred structure.
mvn package builds this additional tree:
Of which only the kubernetes-cassandra-1.0-SNAPSHOT.jar is really all you want. Then copy it into the image dir:
NOTE: I am no maven expert. The AppTest does nothing in this setup except return "passed" and there may be a maven plugin to nicely handle copying the .jar file to the correct place. |
oh, I like the maven approach... will merge this, and then send a PR to support Maven. Thanks! |
Cassandra Cluster Example Add Check for Null Endpoints (redo2)
Fix for Issue: Cassandra Cluster Example Custom Seed Cores on First Node #5737
Also note: for this change to be effective, the following jar must be rebuilt and checked in:
However, this example does not have any visible java build and testing infrastructure.
redo of pull previous closed PR: 5764