Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
3.0.27, 3.11.13, 4.0.4, 4.1-alpha1, 4.1
-
None
-
Packaging
-
Normal
-
Low Hanging Fruit
-
User Report
-
All
-
None
-
Description
Nodetool depends on the free command-line utility, but the official Cassandra RPM does not explicitly install it. free comes from procps-ng, so this package should be made an explicit dependency in the RPM's spec file.
Here's what you get when invoking nodetool without free installed:
bash-5.1# nodetool status
/etc/cassandra/conf/cassandra-env.sh: line 21: free: command not found
expr: syntax error: unexpected argument '2'
expr: syntax error: unexpected argument '2'
/etc/cassandra/conf/cassandra-env.sh: line 59: [: : integer expression expected
/etc/cassandra/conf/cassandra-env.sh: line 63: [: : integer expression expected
/etc/cassandra/conf/cassandra-env.sh: line 67: [: : integer expression expected
expr: syntax error: unexpected argument '4'
/etc/cassandra/conf/cassandra-env.sh: line 81: [: : integer expression expected
I have attached a patch that should fix this issue.