You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Prasanna (JIRA)" <ji...@apache.org> on 2014/04/16 11:10:15 UTC

[jira] [Resolved] (DRILL-531) drill-config.sh detects java executable incorrectly

     [ https://issues.apache.org/jira/browse/DRILL-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prasanna resolved DRILL-531.
----------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0-milestone-1

duplicate of DRILL-530

> drill-config.sh detects java executable incorrectly
> ---------------------------------------------------
>
>                 Key: DRILL-531
>                 URL: https://issues.apache.org/jira/browse/DRILL-531
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.0.0-milestone-1
>         Environment: linux will affect most linux flavours
>            Reporter: Prasanna
>              Labels: patch
>             Fix For: 1.0.0-milestone-1
>
>
> 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`



--
This message was sent by Atlassian JIRA
(v6.2#6252)