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

sstablemetadata line 44: : command not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • 4.0-beta2, 4.0
    • Tool/sstable
    • None
    • Correctness
    • Low
    • Normal
    • User Report
    • All
    • None

    Description

      sstablemetadata shipped with 4.0-beta is missing the code "#Use JAVA_HOME if set, otherwise look for java in PATH" and report error:

      sstablemetadata: line 44: : command not found

       

      The fix is to merge below code from 3.x:

      # Use JAVA_HOME if set, otherwise look for java in PATH
      if [ -x "$JAVA_HOME/bin/java" ]; then
      JAVA="$JAVA_HOME/bin/java"
      else
      JAVA="`which java`"
      fi

      if [ "x$JAVA" = "x" ]; then
      echo "Java executable not found (hint: set JAVA_HOME)" >&2
      exit 1
      fi

      Attachments

        Activity

          People

            bereng Berenguer Blasi
            dhillonarvi@gmail.com Arvinder Singh
            Berenguer Blasi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: