Closed tasehli closed 6 years ago
Hi,
Can you please give more precision on how you're running it (command line).
Thanks
Hi, thank you for your quick replay. I am running it via docker-compose please find below the relevant part of my docker-compose file (node1 is a cassandra node) ` version: '3'
services:
cassandra_exporter:
image: criteord/cassandra_exporter
container_name:
cassandra_exporter
ports:
- "8090:8090"
environment:
- CASSANDRA_EXPORTER_CONFIG_host="node1:7199"
- CASSANDRA_EXPORTER_CONFIG_user=cassandra
- CASSANDRA_EXPORTER_CONFIG_password=cassandra
- CASSANDRA_EXPORTER_CONFIG_listenPort=8090
links:
- node1
depends_on:
- node1
`
This is the full log ` Starting Cassandra exporter
JVM_OPTS: Xmx
CASSANDRA_EXPORTER_CONFIG_user cassandra
CASSANDRA_EXPORTER_CONFIG_ssl False
CASSANDRA_EXPORTER_CONFIG_host "node1:7199"
CASSANDRA_EXPORTER_CONFIG_listenPort 8090
CASSANDRA_EXPORTER_CONFIG_password cassandra
Error: Could not find or load main class Xmx `
Please note that I tried to set the JVM_OPTS to -Xmx1024m or just an empty string I got the same error. The command that causes the error is in the run.sh /sbin/dumb-init /usr/bin/java ${JVM_OPTS} -jar /opt/cassandra_exporter/cassandra_exporter.jar /etc/cassandra_exporter/config.yml where cassandra_exporter.jar is the jar copied from https://github.com/criteo/cassandra_exporter/releases/download/1.0.1/cassandra_exporter-1.0.1-all.jar
Fixed by https://github.com/criteo/cassandra_exporter/commit/fa3e143f5acc19ab5d9315e517e6610cd3c6b895, sorry about that.
You can either re-pull the docker image to get the fix or start your actual image with docker -e JVM_OPTIONS=-Xmx1024m xxxx
to workaround the issue
Hi, thank you for the fix that actually solved the problem. I am closing the issue.
Hello, When starting the docker container I get the following error: Error: Could not find or load main class Xmx