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

Timothy Potter resolved SOLR-7641.
----------------------------------
    Resolution: Won't Fix

As of 5.3, the WAR is extracted so bin/solr doesn't need jar or unzip available 
anymore.

> bin/solr script checks for the presence of the JAR command before resolving 
> java (where it might also find jar)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7641
>                 URL: https://issues.apache.org/jira/browse/SOLR-7641
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.0, 5.1, 5.2
>            Reporter: Timothy Potter
>            Assignee: Timothy Potter
>             Fix For: 5.3
>
>
> I have SOLR_JAVA_HOME set to point to a valid JDK in my bin/solr.in.sh
> {code}
> SOLR_JAVA_HOME="/home/ubuntu/jdk1.8.0_45"
> {code}
> Note: I do not have JAVA_HOME set in my environment nor is it in my PATH.
> And yet, when I run bin/solr, I get the following error:
> {code}
> $ bin/solr start -cloud -p 8984 -d cloud84 -f
> This script requires extracting a WAR file with either the jar or unzip 
> utility, please install these utilities or contact your administrator for 
> assistance.
> {code}
> I think this code in bin/solr should be after the script resolves the 
> location of "java" so it can check there for "jar" and use that rather than 
> failing the script as it's doing now.
> {code}
> if hash jar 2>/dev/null ; then      # hash returns true if jar is on the path
>   UNPACK_WAR_CMD=("$(command -v jar)" xf)
> elif hash unzip 2>/dev/null ; then  # hash returns true if unzip is on the 
> path
>   UNPACK_WAR_CMD=("$(command -v unzip)" -q)
> else
>   echo -e "This script requires extracting a WAR file with either the jar or 
> unzip utility, please install these utilities or contact your administrator 
> for assistance."
>   exit 1
> fi
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to