无法启动cassandra。失败设置ulimit

时间:2015-10-05 16:26:40

标签: cassandra datastax

我安装了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
}

1 个答案:

答案 0 :(得分:2)

无论错误消息如何,节点都应 UP 。您可以通过运行sudo service dse statusnodetool ring来验证这一点。

如果这没有帮助,解决方法是编辑 /etc/init.d/dse 并删除您在for循环中看到的for循环中的-p标记错误消息(for p in -t -f -d -s -c -m -l -n; do