Support Article
Cassandra startup errors on AIX due to cassandra-env.sh 'grep'.
SA-39930
Summary
PRPC is deployed on IBM AIX (version 7.1); the following Pega-Provided shell-script is throwing errors (when PRPC is started):
[…]/cassandra/conf/cassandra-env.sh
Error Messages
SystemOut O […]/cassandra/bin/cassandra[124]: <: 0403-012 A test command parameter is not valid.
SystemOut O grep: Not a recognized flag: A
SystemOut O Usage: grep [-r] [-R] [-H] [-L] [-E|-F] [-c|-l|-q] [-insvxbhwyu] [-p[parasep]] -e pattern_list...
SystemOut O [-f pattern_file...] [file...]
SystemOut O Usage: grep [-r] [-R] [-H] [-L] [-E|-F] [-c|-l|-q] [-insvxbhwyu] [-p[parasep]] [-e pattern_list...]
SystemOut O -f pattern_file... [file...]
SystemOut O Usage: grep [-r] [-R] [-H] [-L] [-E|-F] [-c|-l|-q] [-insvxbhwyu] [-p[parasep]] pattern_list [file...]
SystemOut O [...]/cassandra/bin/cassandra[124]: <: 0403-012 A test command parameter is not valid.
Steps to Reproduce
Start the environment.
Root Cause
The IBM AIX implementation of the command 'grep' does not support the '-A' flag.
Resolution
Apply Hfix-35132
Published August 26, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.