> On 九月 19, 2017, 11:43 a.m., Colm O hEigeartaigh wrote: > > 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?
The case will be very passive when we run hbase using jdk1.7 and run solr using jdk1.8 in the same node. Once we support the issue, this case is very easy to solve. So I think we should make this configuration effective, which can give us flexibility without any side effects. - pengjianhua ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62376/#review185673 ----------------------------------------------------------- On 九月 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 九月 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 > >
