You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/05/28 01:28:57 UTC

[GitHub] [carbondata] qiuchenjian commented on a change in pull request #3240: [CARBONDATA-3400] Support IndexSever for Spark-Shell in secure Mode(kerberos)

qiuchenjian commented on a change in pull request #3240: [CARBONDATA-3400] Support IndexSever for Spark-Shell in secure Mode(kerberos)
URL: https://github.com/apache/carbondata/pull/3240#discussion_r287903483
 
 

 ##########
 File path: integration/spark2/src/main/scala/org/apache/carbondata/indexserver/IndexServer.scala
 ##########
 @@ -170,9 +170,15 @@ object IndexServer extends ServerInterface {
    */
   def getClient: ServerInterface = {
     import org.apache.hadoop.ipc.RPC
+    val indexServerUser = sparkSession.sparkContext.getConf
+      .get("spark.carbon.indexserver.principal", "")
+    val IndexServerKeyTab = sparkSession.sparkContext.getConf
+      .get("spark.carbon.indexserver.keytab", "")
+    val ugi = UserGroupInformation.loginUserFromKeytabAndReturnUGI(indexServerUser,
+      IndexServerKeyTab)
 
 Review comment:
   better to log the key information

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services