Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
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"
Solved! Go to Solution.
08-07-2017 08:53 PM
Hi Mayank,
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
Thanks,
Atyuha
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.
08-07-2017 11:41 PM
Hi Mayank,
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.
Thanks,
Atyuha
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
08-08-2017 12:00 AM
Hi Mayank,
Glad to hear that it is working now.
Please refer to the below doc for future reference
https://docs.appdynamics.com/display/PRO43/Roles+and+Permissions
Thanks,
Atyuha
10-24-2017 02:38 AM
For every node in your cluster, follow these instructions:
mkdir opscenteragent
)agent.tar.gz
on 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.agent.tar.gz
filesetup
script in the bin
subdirectory of the agent
directory 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
opscenter-agent
script.If You need More Information visit this Source! http://www.kpipartners.com/dse-vs-cassandra-open-source | Cassandra Tutorial
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form