[ 
https://issues.apache.org/jira/browse/SPARK-16298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15357069#comment-15357069
 ] 

Partha Pratim Ghosh commented on SPARK-16298:
---------------------------------------------

spark version - 1.5
It is running in yarn-client mode

> spark.yarn.principal not working
> --------------------------------
>
>                 Key: SPARK-16298
>                 URL: https://issues.apache.org/jira/browse/SPARK-16298
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Partha Pratim Ghosh
>
> I am opening a Spark configuration with spark.yarn.principal and 
> spark.yarn.keytab. However, this is not authenticating the underlying HDFS 
> with the same principal and keytab. Instead, seems it is picking up from 
> ticket cache. Without this feature the spark.yarn.principal and 
> spark.yarn.keytab doesn't seem to be logical.
> Sample code - 
> SparkConf conf = new 
> SparkConf().setMaster("yarn-client").setAppName("spark-test")
>                                               .set("spark.repl.class.uri", 
> classServerUri);
>                               conf.set("spark.yarn.principal", principal);
>                               conf.set("spark.yarn.keytab", keytab);
>                               conf.setSparkHome(sparkBasePath);
>                               
>                               if (execUri != null) {
>                                       conf.set("spark.executor.uri", execUri);
>                               }
>                               conf.set("spark.executor.memory", "8g");
>                               conf.set("spark.scheduler.mode", "FAIR");
>                               SparkContext sparkContext = new 
> SparkContext(conf);
> Please advise how this can be achieved.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to