GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/17311
[SPARK-19970][SQL] Table owner should be USER instead of PRINCIPAL in
kerberized clusters
## What changes were proposed in this pull request?
In the kerberized hadoop cluster, when Spark creates tables, the owner of
tables are filled with PRINCIPAL strings instead of USER names. This is
inconsistent with Hive and causes problems when using ROLE in Hive. We had
better to fix this.
**BEFORE**
```scala
scala> sql("create table t(a int)").show
scala> sql("desc formatted t").show(false)
...
|Owner: |[email protected]
| |
```
**AFTER**
```scala
scala> sql("create table t(a int)").show
scala> sql("desc formatted t").show(false)
...
|Owner: |spark
| |
```
## How was this patch tested?
Manually `create table` and `desc formatted` because this happens in
Kerberized clusters.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-19970
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17311.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17311
----
commit 9dfbf828be5fc99811529ae988b3ffa8fa39fcb7
Author: Dongjoon Hyun <[email protected]>
Date: 2017-03-16T09:12:37Z
[SPARK-19970][SQL] Table owner should be USER instead of PRINCIPAL in
kerberized clusters
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]