中看到的for循环中的
我安装了cassandra并尝试启动服务,但仍然出现以下错误。我可以知道我应该换什么值吗?谢谢你的宝贵时间。
#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
}
无论错误消息如何,节点都应该UP。您可以通过运行sudo service dse status
或nodetool ring
来验证这一点。
如果没有帮助,一个变通的方法是编辑/etc/init。d/dse并删除您在错误消息(for p in -t -f -d -s -c -m -l -n; do
)
-p
标志。