Scylla JMX proxy
Go to file
Amos Kong 6311525346 nonroot.conf: set WorkingDirectory to empty
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>
2020-08-26 23:34:28 +08:00
.github Add Pekka as a "code owner" on GitHub (#85) 2019-11-14 02:18:33 -08:00
dist dist/debian: Remove conflict tag for Java 11 2020-08-25 15:46:04 +03:00
reloc reloc: Add "--builddir" option to build_{rpm,deb}.sh 2020-07-18 12:16:31 +03:00
scripts reloc-pkg: move all files under project name directory 2020-06-03 09:53:11 +03:00
scylla-apiclient apiclient: Bump Jackson version to 2.10.4 2020-07-14 10:19:49 +03:00
scylla-jmx-parent make scylla-apiclient a separate module so the jar can be reused 2019-07-01 17:33:08 +02:00
src/main/java Added support for `checkAndRepairCdcStreams` command 2020-06-15 14:58:13 +03:00
.gitignore add build/ to gitignore 2020-07-21 09:10:25 +03:00
LICENSE.AGPL Change license to AGPLv3 2015-09-22 13:33:24 +03:00
NOTICE Add a NOTICE file for the yammer library 2015-06-11 14:32:45 +03:00
README.md fix README for building instructions 2019-07-08 11:02:45 +02:00
SCYLLA-VERSION-GEN dist: merge product name parameter on single place 2019-04-22 13:55:53 +03:00
git-archive-all-license.txt dist: make ubuntu package as 'debian non-native package' 2015-11-25 19:43:38 +09:00
install-dependencies.sh reloc: add support relocatable package 2018-10-24 02:02:25 +00:00
install.sh nonroot.conf: set WorkingDirectory to empty 2020-08-26 23:34:28 +08:00
pom.xml cleanup commented implicit steps in mvn 2019-07-08 10:04:24 +02:00

README.md

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