RE: [ANNOUNCE] Apache Sentry 2.0.0 released

2017-12-10 Thread An Qin
Sentry 2.0.0 bundles Hive 2.3.2, but the newest Spark 2.2.1 still bundles Hive 1.2.1, for example, hive-exec-1.2.1.spark2.jar. Why don't we upgrade hive in Spark 2.2.1? How can I use Sentry 2.0.0 in Spark 2.2.1? Regards, Qin An. -Original Message- From: Mat Crocker [mailto:mat.croc

[HELP] SENTRY: ALTER_TABLE evnet does not work as expected

2017-12-05 Thread An Qin
Hi, I am working with Sentry + Hive Server. I want to disable the insert permission of user jim who can only select from a table. I implemented my own class that extends org.apache.sentry.binding.hive.v2.metastore.MetastoreAuthzBindingV2. I understand I should response Hive Events: READ_TABLE,

How does Sentry authorize SQL Insert

2016-10-13 Thread An Qin
Hi, I developed a system with Sentry to authorize SQL users. When I execute an insert SQL (insert into ...), I notice that it fires 3 PreReadTableEvents, and then a PreAlterTableEvent to MetastoreAuthzBinding. Why is there a PreAlterTableEvent for this SQL? The user has no permission to insert