Open aldobongio opened 8 months ago
It looks like for some reason upstream chose to move those into tools/bin
instead:
$ docker run --rm cassandra ls -l /opt/cassandra/tools/bin/
total 64
-rwxr-xr-x 1 root root 1774 Jul 18 20:08 auditlogviewer
-rw-r--r-- 1 root root 4666 Jul 18 20:08 cassandra.in.sh
-rwxr-xr-x 1 root root 1677 Jul 18 20:08 cassandra-stress
-rwxr-xr-x 1 root root 1687 Jul 18 20:08 compaction-stress
-rwxr-xr-x 1 root root 2388 Jul 18 20:08 fqltool
-rwxr-xr-x 1 root root 1905 Jul 18 20:08 generatetokens
-rwxr-xr-x 1 root root 1902 Jul 18 20:08 hash_password
-rwxr-xr-x 1 root root 2380 Jul 18 20:08 jmxtool
-rwxr-xr-x 1 root root 1773 Jul 18 20:08 sstabledump
-rwxr-xr-x 1 root root 1782 Jul 18 20:08 sstableexpiredblockers
-rwxr-xr-x 1 root root 1780 Jul 18 20:08 sstablelevelreset
-rwxr-xr-x 1 root root 1781 Jul 18 20:08 sstablemetadata
-rwxr-xr-x 1 root root 1781 Jul 18 20:08 sstableofflinerelevel
-rwxr-xr-x 1 root root 1783 Jul 18 20:08 sstablerepairedset
-rwxr-xr-x 1 root root 1778 Jul 18 20:08 sstablesplit
Good spot. How about adding /opt/cassandra/tools/bin/ to the PATH?
#> docker exec -it <CONTAINER_ID> nodetool version
ReleaseVersion: 3.11.16
#> docker exec -it <CONTAINER_ID> sstabledump
OCI runtime exec failed: exec failed: unable to start container process: exec: "sstabledump": executable file not found in $PATH: unknown
Interesting thought, but I do worry about how many of those are generally intended for use? For example, their Debian packages only put a few of them in PATH
: https://github.com/apache/cassandra/blob/5321f88c40cc9ad280a7fb7472194b93e93334c0/debian/cassandra.install#L25-L30
All the up-to-date Cassandra Docker images are missing multiple sstable-related tools (for instance sstabledump):