I installed cassandra and tried starting service but stuck with below error. May I know What value I should change? Thanks for your time.
#service dse start
Starting DSE daemon : dse
DSE daemon starting with just Cassandra enabled (edit /etc/default/dse to enable)
Fail setting `ulimit '-p' '8'`: /etc/init.d/dse: line 430: ulimit: pipe size: cannot modify limit: Invalid argument
/etc/init.d/dse file contains below info
copy_limits(){
# Use CASSANDRA_USER as a default argument
local user=${1:-${CASSANDRA_USER}}
# Since /bin/sh has a limited `ulimit` and `prlimit` from 'utils-linux' is
# not well spread, we use `for` as an alternative
local c
for p in -t -f -d -s -c -m -l -p -n; do
local v="$( su - "$user" -s /bin/sh -c "ulimit $p" 2>/dev/null )"
==>line 430 in error ***** : ulimit $p $v 2>&1 | \
while read err; do
log_message "Fail setting \`ulimit '$p' '$v'\`: $err"
done
done
}
The node should be UP regardless of the error message. You can verify this by running sudo service dse status or nodetool ring.
If that does not help, a workaround would be to edit /etc/init.d/dse and remove the -p flag in the for loop that you're seeing in the error message (for p in -t -f -d -s -c -m -l -n; do)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With