Hi, When i install Hive Ranger plugin I am getting FileNotFound exception whenever the plugin is activated.
I am already using HDFS ranger plugin and it works well although it may use the same code (The plugin also extends RangerBasePlugin). Is it possible that the bug is similar to https://issues.apache.org/jira/browse/AMBARI-13564 ? > 15/12/14 13:30:36 [main]: ERROR ql.Driver: FAILED: RuntimeException java.io.FileNotFoundException: /etc/hive/2.3.0.0-2557/0/xasecure-audit.xml (No such file or directory) > java.lang.RuntimeException: java.io.FileNotFoundException: /etc/hive/2.3.0.0-2557/0/xasecure-audit.xml (No such file or directory) > at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2639) > at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502) > at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405) > at org.apache.ranger.authorization.hadoop.config.RangerConfiguration.initAudit(RangerConfiguration.java:120) > at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:89) > at org.apache.ranger.authorization.hive.authorizer.RangerHivePlugin.init(RangerHiveAuthorizer.java:960) > at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.<init>(RangerHiveAuthorizer.java:100) > at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory.createHiveAuthorizer(RangerHiveAuthorizerFactory.java:37) > at org.apache.hadoop.hive.ql.session.SessionState.setupAuth(SessionState.java:734) > at org.apache.hadoop.hive.ql.session.SessionState.getAuthorizationMode(SessionState.java:1504) > at org.apache.hadoop.hive.ql.session.SessionState.isAuthorizationModeV2(SessionState.java:1515) > at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:566) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:468) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:308) > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1122) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1170) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1059) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1049) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:213) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:165) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:376) > at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:736) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.FileNotFoundException: /etc/hive/2.3.0.0-2557/0/xasecure-audit.xml (No such file or directory) > at java.io.FileInputStream.open0(Native Method) > at java.io.FileInputStream.open(FileInputStream.java:195) > at java.io.FileInputStream.<init>(FileInputStream.java:138) > at java.io.FileInputStream.<init>(FileInputStream.java:93) > at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) > at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) > at java.net.URL.openStream(URL.java:1038) > at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468) > at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2536) > ... 29 more