Github user arina-ielchiieva commented on a diff in the pull request:

    https://github.com/apache/drill/pull/763#discussion_r103110976
  
    --- Diff: distribution/src/resources/drill-config.sh ---
    @@ -359,6 +366,7 @@ if [ -z "$JAVA_HOME" ]; then
           [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
         done
         JAVA_HOME="$( cd -P "$( dirname "$SOURCE" )" && cd .. && pwd )"
    +    JAVA = $SOURCE/$JAVA_BIN
    --- End diff --
    
    $SOURCE already includes bin/java, so concatenating with $JAVA_BIN will 
give you:
    
`/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/jre/bin/java/java`.
    I guess you should concatenate $JAVA_BIN to $SOURCE dirname.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to