Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-530

drill-config.sh detects java executable incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1.0-m1
    • 0.8.0
    • Tools, Build & Test
    • None
    • linux will affect most linux flavours

    Description

      if JAVA_HOME = /work/platform/java
      and JAVA_BIN = /work/platform/java/bin/java

      Then the following in drill-config.sh line [156 java executable detection line]
      JAVA=`find -L "$JAVA_HOME" -name $JAVA_BIN | head -n 1`

      evaluates to "/work/platform/java" which is not a binary java executable.

      I recommend the line to be changed to:
      JAVA=`find -L "$JAVA_HOME" -name $JAVA_BIN -type f | sort -n -k2 | head -n 1`

      Attachments

        Issue Links

          Activity

            People

              pwong-mapr Patrick Wong
              pradhp Prasanna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: