Description
cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number of processors on the system. If /proc/cpuinfo does not contain a processor :# line then the script will fail because of a divide by 0 error. Changing the Linux section of cassandra.env.sh to:
Linux)
system_memory_in_mb=`free -m | awk '/Mem:/
'`
system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
if [ "$system_cpu_cores" -lt "1" ]
then
system_cpu_cores="1"
fi
is a possible fix