Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/17335#discussion_r106831705
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
---
@@ -353,6 +354,25 @@ class SparkHadoopUtil extends Logging {
}
buffer.toString
}
+
+ /**
+ * Run some code as the real logged in user (which may differ from the
current user, for
+ * example, when using proxying).
+ */
+ private[spark] def doAsRealUser[T](fn: => T): T = {
+ val currentUser = UserGroupInformation.getCurrentUser()
--- End diff --
@vanzin I tried with Above two configurations, though having some class not
found issue in our HDP environment, but metastore connect can be correct
established without GSSAPI tgt not found issue. Tried with
spark.sql.hive.metastore.jars=maven, spark.sql.hive.metastore.version=1.2.1 and
2.0.1.
```
17/03/20 03:35:48 INFO metastore: Trying to connect to metastore with URI
thrift://c6402.ambari.apache.org:9083
17/03/20 03:35:48 INFO metastore: Opened a connection to metastore, current
connections: 1
17/03/20 03:35:48 INFO metastore: Connected to metastore.
```
---
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]