Scylla JMX proxy
6311525346
After offline installation, scylla-jmx fails to be started for a chdir error. WorkingDirectory is set to /var/lib/scylla in scylla-jmx.service, it doesn't exist in nonroot install. This patch solved the problem by setting WorkingDirectory to empty in nonroot.conf. $ systemctl --user status scylla-jmx ● scylla-jmx.service - Scylla JMX Loaded: loaded (/home/scylla-test/.config/systemd/user/../../../scylladb/etc/systemd/scylla-jmx.service; linked; vendor preset: enabled) Drop-In: /home/scylla-test/.config/systemd/user/scylla-jmx.service.d └─nonroot.conf Active: failed (Result: exit-code) since Wed 2020-08-26 15:19:56 UTC; 2s ago Process: 66955 ExecStart=/home/scylla-test/install_root/jmx/scylla-jmx $SCYLLA_JMX_PORT $SCYLLA_API_PORT $SCYLLA_API_ADDR $SCYLLA_JMX_ADDR $SCYLLA_JMX_FILE $SCYLLA_JMX_LOCAL $SCYLLA_JMX_REMOTE $SCYLLA_JMX_DEBUG (code=exited, status=200/CHDIR) Main PID: 66955 (code=exited, status=200/CHDIR) systemd[5654]: Started Scylla JMX. systemd[66955]: scylla-jmx.service: Changing to the requested working directory failed: No such file or directory systemd[66955]: scylla-jmx.service: Failed at step CHDIR spawning /home/scylla-test/scylladb/jmx/scylla-jmx: No such file or directory systemd[5654]: scylla-jmx.service: Main process exited, code=exited, status=200/CHDIR systemd[5654]: scylla-jmx.service: Failed with result 'exit-code'. Signed-off-by: Amos Kong <amos@scylladb.com> |
||
---|---|---|
.github | ||
dist | ||
reloc | ||
scripts | ||
scylla-apiclient | ||
scylla-jmx-parent | ||
src/main/java | ||
.gitignore | ||
git-archive-all-license.txt | ||
install-dependencies.sh | ||
install.sh | ||
LICENSE.AGPL | ||
NOTICE | ||
pom.xml | ||
README.md | ||
SCYLLA-VERSION-GEN |
Scylla JMX Server
Scylla JMX server implements the Apache Cassandra JMX interface for compatibility with tooling such as nodetool
. The JMX server uses Scylla's REST API to communicate with a Scylla server.
Compiling
To compile JMX server, run:
$ mvn --file scylla-jmx-parent/pom.xml package
Running
To start the JMX server, run:
$ ./scripts/scylla-jmx
To get help on supported options:
$ ./scripts/scylla-jmx --help