Discussion Feed
08-07-2017
11:54 PM
Hi Atyuha,
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.
Regards,
Mayank
... View more
08-07-2017
09:20 PM
Hi Atyuha,
I tried using the following jar now as mentioned by you in the earlier reply :
JVM_OPTS = " $JVM_OPTS -javaagent:/etc/appdynamics/java/appagent/AppServerAgent-4/ver4.3.3.4/javaagent.jar "
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 :
/etc/appdynamics/java/appagent/AppServerAgent-4/ver4.3.3.4/logs
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
Please help.
... View more
08-07-2017
05:35 PM
Ihave followed all the steps mentioned in the following file :
https://docs.appdynamics.com/display/PRO43/Apache+Cassandra+Startup+Settings
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 :
JVM_OPTS =-javaagent:/etc/appdynamics/java/appagent/AppServerAgent -4 /javaagent.jar
# The directory where Cassandra's configs live (required)
CASSANDRA_CONF =/etc/cassandra
CASSANDRA_HOME =/usr/share/cassandra
# the default location for commitlogs, sstables, and saved caches
# if not set in cassandra.yaml
cassandra_storagedir =/var/lib/cassandra
# The java classpath (required)
if [ -n " $CLASSPATH " ]; then
CLASSPATH = $CLASSPATH : $CASSANDRA_CONF
else
CLASSPATH = $CASSANDRA_CONF
fi
for jar in /usr/share/cassandra/lib/*.jar; do
CLASSPATH = $CLASSPATH : $jar
done
for jar in /usr/share/cassandra/*.jar; do
CLASSPATH = $CLASSPATH : $jar
done
CLASSPATH = " $CLASSPATH : $EXTRA_CLASSPATH "
# 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 ]
then
JAVA_AGENT = " $JAVA_AGENT -javaagent: $CASSANDRA_HOME /lib/jamm-0.3.0.jar "
... View more
Latest Activity
- Posted Re: Not able to install the Java Agent for Cassandra cluster setup on Linux machines on Java (Java Agent, Installation, JVM, and Controller Installation). 08-07-2017 11:54 PM
- Posted Re: Not able to install the Java Agent for Cassandra cluster setup on Linux machines on Java (Java Agent, Installation, JVM, and Controller Installation). 08-07-2017 09:20 PM
- Posted Not able to install the Java Agent for Cassandra cluster setup on Linux machines on Java (Java Agent, Installation, JVM, and Controller Installation). 08-07-2017 05:35 PM
Community Stats
Date Registered | 08-07-2017 04:38 PM |
Date Last Visited | 08-09-2017 12:01 AM |
Total Messages Posted | 3 |