Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
Ihave followed all the steps mentioned in the following file :
But, after this, when I try to start my Cassandra node, it does not come up. I cannot see any error in the logs as well. Following is my cassandra.in.sh file. Please help :
# The directory where Cassandra's configs live (required)
# the default location for commitlogs, sstables, and saved caches
# if not set in cassandra.yaml
# The java classpath (required)
if [ -n "$CLASSPATH" ]; then
for jar in /usr/share/cassandra/lib/*.jar; do
for jar in /usr/share/cassandra/*.jar; do
# set JVM javaagent opts to avoid warnings/errors
if [ "$JVM_VENDOR" != "OpenJDK" -o "$JVM_VERSION" \> "1.6.0" ] \
|| [ "$JVM_VERSION" = "1.6.0" -a "$JVM_PATCH_VERSION" -ge 23 ]
Solved! Go to Solution.
Could you please give the path of javaagent.jar which is under/etc/appdynamics/java/appagent/AppServerAgent-4/ver4.*.*.* and check if it works. If issue still persists please enclose the complete agent log to debug it further.
For Example: JVM_OPTS=-javaagent:/etc/appdynamics/java/appagent/AppServerAgent-4/ver4.*.*.*/javaagent.jar
I tried using the following jar now as mentioned by you in the earlier reply :
Still, it does not work. The problem is, that after making this change, the cassandra node itself is not starting. I checked for logs in the following directly, but there are no logs being generated :
Also, I checked Cassandra logs, but cannot see anything. I think it is failing somewhere right in the start itself.
Could it be a permission issue or something ?
Following are the permission of javagaent.jar file :
-rw-r--r-- 1 root root 128526 Jun 29 05:14 javaagent.jar
Could you please revert back the change and check whether you can see logs. If yes,please share the agent log and server log to debug the issue.
I tried the above suggestion as well. It did not work too.
I thought it might be a permissions issue, so I gave 777 to all the files in AppServerAgent-4 folder. Post this, Cassandra node is coming up fine with the AppD javaagent properly showing in the process list as well.
I think, it would be better if we can shed some light on the file permissions required for AppD to run in the documentation itself.
Thank you for the help.
Glad to hear that it is working now.
Please refer to the below doc for future reference
For every node in your cluster, follow these instructions:
agent.tar.gzon your first machine. Copy that file (e.g.
scp) to all the machines in your cluster and put it into the new directory you just created.
setupscript in the
binsubdirectory of the
agentdirectory and passing it first the machine IP or name of where the OpsCenter main service is running followed by the local machine’s address or name:
./setup main-opscenter-machine-name-or-ip local-machine-name-or-ip
If You need More Information visit this Source! http://www.kpipartners.com/dse-vs-cassandra-open-source | Cassandra Tutorial