[ 
https://issues.apache.org/jira/browse/SOLR-9862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15747752#comment-15747752
 ] 

Uwe Schindler commented on SOLR-9862:
-------------------------------------

Hi,
most init scripts around there have special cases for various operating 
systems! Ours just relies on the default PATH to lookup shell tools. But other 
non-linux operating systems often have special paths for tools with more 
advanced capabilities. Most init scripts have therefore something like a 
switch/case construct to set some variables with absolute paths to tools on 
various operating systems. We may copy one from some other common tools and 
replace all calls with variables.

E.g. on Solaris most advanced tools are not on default path for "default users" 
(for compatibility reasons with previous Solaris versions), so you need to 
refer to them absolutely, e.g. {{/usr/xpg4/bin/awk}} or use a different name 
{{nawk}} on solaris, which is a symlink to the previous xpg4 path (see 
https://docs.oracle.com/cd/E23823_01/html/816-5165/awk-1.html vs. 
https://docs.oracle.com/cd/E23823_01/html/816-5165/nawk-1.html).

> Cannot start Solr on Solaris/Super Cluster
> ------------------------------------------
>
>                 Key: SOLR-9862
>                 URL: https://issues.apache.org/jira/browse/SOLR-9862
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.3
>            Reporter: Moenieb
>              Labels: beginner, newbie, security
>
> Solr: 6.3
> OS: Solaris
> JAVA: 1.8.0_111
> Hardware: Oracle Super Cluster
> When i start Solr, I get a message that does not allow Solr to startup, See 
> cmd output below
> P.S: I am BRAND new to Solr. I installed and actually played with the 
> previous version on exactly the same environment and had no issues
> root@XXXXXXXXXXX:/u02/solr# java -version
> java version "1.8.0_111"
> Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
> root@XXXXXXXXXXX:/u02/solr# echo $JAVA_HOME
> /u03/software/jdk1.8.0_111
> root@XXXXXXXXXXX:/u02/solr# echo $PATH
> /u03/software/jdk1.8.0_111/bin:/usr/sbin:/usr/bin
> root@XXXXXXXXXXX:/u02/solr# bin/solr start
> awk: can't open /version/ {print $2}
> Your current version of Java is too old to run this version of Solr
> We found version , using command '/u03/software/jdk1.8.0_111/bin/java'
> Please install latest version of Java 8 or set JAVA_HOME properly.
> Debug information:
> JAVA_HOME: /u03/software/jdk1.8.0_111
> Active Path:
> /u03/software/jdk1.8.0_111/bin:/usr/sbin:/usr/bin
> root@XXXXXXXXXXX:/u02/solr#



--
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