Hi, Sentry 1.5.1 works with Hive 1.1.0. See https://github.com/apache/incubator-sentry/blob/branch-1.5.1/pom.xml#L71
I have not personally tried out with Hive 1.2.0, but there might be others who did. Eitherways, can you use Hive 1.2.0? As that is the version which is well tested with Sentry 1.5.1. Thanks! On Wed, Oct 21, 2015 at 4:09 AM, 黑暗使者 <[email protected]> wrote: > hello sentry! when i try to binding hive 1.2.0 with sentry 1.5.1 ,i > face some problem. Is Sentry 1.5.1 supporting binding hive 1.2.0? This > question is troubled me for a long time. Waiting for your reply. thank U. > Here are my questions below when i use beeline to run hql "select * > from XX" : > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > conf.HiveAuthzConf: DefaultFS: hdfs://hadoop51:9000 > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > conf.HiveAuthzConf: DefaultFS: hdfs://hadoop51:9000 > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > file.SimpleFileProviderBackend: Parsing > file:/usr/local/hive-1.2.0/conf/sentry-provider.ini > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > file.SimpleFileProviderBackend: Filesystem: file:/// > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > file.PolicyFiles: Opening > file:/usr/local/hive-1.2.0/conf/sentry-provider.ini > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > file.SimpleFileProviderBackend: Section databases needs no further > processing > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: INFO > file.PolicyFiles: Opening > file:/usr/local/hive-1.2.0/conf/sentry-provider.ini > 15/10/21 17:50:42 [HiveServer2-Handler-Pool: Thread-28]: ERROR ql.Driver: > FAILED: NullPointerException null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getUnescapedName(BaseSemanticAnalyzer.java:323) > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getUnescapedName(BaseSemanticAnalyzer.java:307) > at > org.apache.sentry.binding.hive.HiveAuthzBindingHook.extractTable(HiveAuthzBindingHook.java:267) > at > org.apache.sentry.binding.hive.HiveAuthzBindingHook.preAnalyze(HiveAuthzBindingHook.java:167) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:422) > 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.compileAndRespond(Driver.java:1116) -- Sravya Tirukkovalur
