Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-4401

If processor is missing from /proc/cpuinfo, cassandra will not start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.3
    • Packaging
    • None
    • Low

    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:/

      {print $2}

      '`
      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

      Attachments

        1. 4401.txt
          0.5 kB
          Andy Cobley

        Activity

          People

            Unassigned Unassigned
            acobley Andy Cobley
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: