-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71365/
-----------------------------------------------------------
Review request for ranger, Ankita Sinha, Don Bosco Durai, Colm O hEigeartaigh,
Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Nitin Galave,
pengjianhua, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja
Polavarapu, sam rome, Venkat Ranganathan, Velmurugan Periasamy, Qiang Zhang,
and Zsombor Gegesy.
Bugs: RANGER-2549
https://issues.apache.org/jira/browse/RANGER-2549
Repository: ranger
Description
-------
The install.sh will print 'Command not found' when installing the solr audit
log module, as follow:
[root@wkh001 solr_for_audit_setup]# ./setup.sh
./setup.sh: line 29: log: Command not found
Then I analyse the install.sh, there is one error code, as follow:
if test -z "$validateProperty" ; then log "[E] '$1' not found in $2 file while
getting....!!"; exit 1; fi
Because the function log is undefined, and in other places, we use echo to
print log, We need to be unified as 'echo'.
When I modify this bug, then execute setup.sh, it shows another error, as
follow:
setup.sh: line 68:[: Too many parameters
Then I find another logic bug, if you don't config JAVA_HOME in
install.properties, CONFIG_JAVA_HOME will get an error message and influence
subsequent processe.
CONFIG_JAVA_HOME=$(get_prop 'JAVA_HOME' $PROPFILE)
JAVA_HOME=${CONFIG_JAVA_HOME:-$JAVA_HOME}
So I modified two places, and test in two scenes, one is that JAVA_HOME is not
configured, another is JAVA_HOME is configured.
Please check my patch, thanks.
Diffs
-----
security-admin/contrib/solr_for_audit_setup/setup.sh f059c03
Diff: https://reviews.apache.org/r/71365/diff/1/
Testing
-------
Thanks,
Kehua Wu