You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by vtygoss <vt...@126.com> on 2021/06/15 09:06:47 UTC

AccessControlException from hive default database

Hi,


I am doing some work on permission control for all hive databases including “default", but when checking “default” database existence I got AccessControlException pointing to org.apache.spark.sql.internal.SharedState(based on spark 2.3.0).


I have two questions,


1.  does this code mean: if user has no permission of ”default“ db, Spark Application will fail when session initiliazing? is this idea reasonable? 
2.  business lines or department should have its own databases. what is the meaning of  “default” db existence in hive? 
 
pleasure for get answer from you!
Best Regard!


```
[SharedState.scala]
```