----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62376/#review185673 -----------------------------------------------------------
I wonder if we need to support JAVA_HOME at all here in the solr audit install.properties? Why not just take it from the environment like all of the other plugins? - Colm O hEigeartaigh On Sept. 18, 2017, 7:01 a.m., pengjianhua wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62376/ > ----------------------------------------------------------- > > (Updated Sept. 18, 2017, 7:01 a.m.) > > > Review request for ranger, Alok Lal, Ankita Sinha, Don Bosco Durai, Colm O > hEigeartaigh, Gautam Borad, Madhan Neethiraj, Ramesh Mani, Selvamohan > Neethiraj, Velmurugan Periasamy, and Qiang Zhang. > > > Bugs: RANGER-1791 > https://issues.apache.org/jira/browse/RANGER-1791 > > > Repository: ranger > > > Description > ------- > > The JAVA_HOME was set to jdk1.8.0 in install.properties when installed and > configured Solr for Ranger Audits. The solr was started fail when started > solr. The error information is as following: > Your current version of Java is too old to run this version of Solr > We found version 1.7.0_80, using command > '/diskb/home/pengjianhua/tools/jdk1.7.0_80/bin/java -version', with response: > java version "1.7.0_80" > Java(TM) SE Runtime Environment (build 1.7.0_80-b15) > Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) > > Please install latest version of Java 1.8 or set JAVA_HOME properly. > > Debug information: > JAVA_HOME: /diskb/home/pengjianhua/tools/jdk1.8.0_111 > Active Path: > /diskb/home/pengjianhua/tools/jdk1.7.0_80/bin:/diskb/home/pengjianhua/tools/jdk1.7.0_80/jre/bin:/diskb/home/pengjianhua/tools/jdk1.7.0_80/bin:/diskb/home/pengjianhua/tools/jdk1.7.0_80/jre/bin:/diskc/component/run/hbase-1.2.6/bin:/diskc/component/run/hbase-1.2.6/conf:/diskc/component/run/hadoop-2.7.4/bin:/diskc/component/run/hadoop-2.7.4/sbin:/diskc/component/run/zookeeper-3.4.10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/pengjianhua/anaconda3/bin:/snap/bin:/home/pengjianhua/bin:/diskb/home/pengjianhua/tools/apache-maven-3.3.9/bin:/home/pengjianhua/anaconda3/bin:/home/pengjianhua/bin:/diskb/home/pengjianhua/tools/apache-maven-3.3.9/bin:/home/pengjianhua/anaconda3/bin > That is, this configuration is invalid. > > > Diffs > ----- > > security-admin/contrib/solr_for_audit_setup/setup.sh 22d4c620 > > > Diff: https://reviews.apache.org/r/62376/diff/1/ > > > Testing > ------- > > > Thanks, > > pengjianhua > >
