Closed irumman closed 6 years ago
Can you update cassandra-env.sh by adding the file:/// for config path? Thats what the error is saying.
This should work:
JVM_OPTS="$JVM_OPTS -Dcassandra.diagnostics.config=file:///etc/dse/cassandra/cassandra-diagnostics.yml" JVM_OPTS="$JVM_OPTS -javaagent:/usr/share/dse/resources/cassandra/lib/cassandra-diagnostics-core-1.4.10.jar"
Since you put diagnostics config at the config path (in your case /etc/dse/cassandra) you can just set -Dcassandra.diagnostics.config=cassandra-diagnostics.yml
.
Tried that. Still it's giving the same error. io.smartcat.cassandra.diagnostics.config.ConfigurationException: Cannot locate file:///etc/dse/cassandra/cassandra-diagnostics.yml. If this is a local file, please confirm you've provided file:/// as a URI prefix.
When I used this, I got different error:
JVM_OPTS="$JVM_OPTS -Dcassandra.diagnostics.config=file:///etc/dse/cassandra/cassandra-diagnostics.yaml"
JVM_OPTS="$JVM_OPTS -javaagent:/usr/share/dse/resources/cassandra/lib/cassandra-diagnostics-core-1.4.8.jar"
Error:
INFO 06:05:27,847 Loading settings from file:/etc/dse/cassandra/cassandra-diagnostics.yaml
INFO 06:05:28,095 Effective configuration: { hostname: ip-10-2-0-84.us-east-2.compute.internal{ systemName: zabbix_test, httpApiEnabled: true, httpApiPort: 8998, reporters: , reporter: "io.smartcat.cassandra.diagnostics.reporter.LogReporter", reporterOptions: {} }, modules: , module: "io.smartcat.cassandra.diagnostics.module.slowquery.SlowQueryModule", measurement: queryReport, moduleOptions: {slowQueryThresholdInMilliseconds=1}, moduleReporters: [io.smartcat.cassandra.diagnostics.reporter.LogReporter] } }
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.lang.IllegalStateException: Unable to find Cassandra Connector implementation.
at io.smartcat.cassandra.diagnostics.ConnectorFactory.getImplementation(ConnectorFactory.java:25)
at io.smartcat.cassandra.diagnostics.DiagnosticsAgent.premain(DiagnosticsAgent.java:40)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Can you please tell me what I am missing?
Thanks.
I am able to solve it. I was missing:
/usr/share/dse/resources/cassandra/lib/cassandra-diagnostics-connector21-1.4.8.jar
I copied it and now Cassandra started.
Cool. We will check the installer after you feedback.
Hi,
I am trying to use this for the first time with my DSE 4.8.14. I installed it using the build script as:
cassandra-diagnostics-installer.sh -c /etc/dse/cassandra -l /usr/share/dse/resources/cassandra/lib -v 2.1.18 -V 1.4.10 -C /home/ubuntu/cassandra_slow_query/cassandra-diagnostics.yml
I can see these in my cassandra-env.sh:I have the following file:
My cassandra-diagnostics.yml file:
But when I am trying to start my Cassandra, it is giving me following error:
Can anyone please tell me what I am missing here?
Thanks.