# Spark + Kerberos + SearchGuard + ElasticSearch 1.7.3

**URL:** <https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [February 4, 2016, 11:16pm UTC](https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014 "2016-02-04T23:16:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamed\_Zouaoui](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@Mohamed\_Zouaoui](https://discuss.elastic.co/u/Mohamed_Zouaoui)\
**Post date:** [February 4, 2016, 11:16pm UTC](https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014/1 "2016-02-04T23:16:15Z")

</div>

I am trying to get some Spark Job working runing on ES configured with SearchGuarg ( SPNEGO/Kerberos) . I Dont figure out how to pass Security/Kerberos in Spark Conf

Is there any one who did the test  
Thanks

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [February 21, 2016, 6:21pm UTC](https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014/2 "2016-02-21T18:21:20Z")

</div>

If you take ES-Spark out of the equation, how would your Spark configuration look like?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Zouaoui](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@Mohamed\_Zouaoui](https://discuss.elastic.co/u/Mohamed_Zouaoui)\
**Post date:** [February 22, 2016, 11:07am UTC](https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014/3 "2016-02-22T11:07:35Z")

</div>

("spark.serializer", sparkSerialzer),  
("spark.streaming.blockInterval", blockInterval),  
("spark.streaming.receiver.maxRate", receiverMaxrate),  
("spark.streaming.receiver.write.ahead.log.enable", isWal),  
//("es.nodes", nodes),  
//("es.port", "9200"),  
//("es.batch.size.entries", esBulkSize),  
//("es.batch.size.bytes", esBulkByteSize),  
//(ConfigurationOptions.ES\_NET\_HTTP\_AUTH\_USER, eslogin),  
//(ConfigurationOptions.ES\_NET\_HTTP\_AUTH\_PASS, esPassword))

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [February 22, 2016, 6:49pm UTC](https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014/4 "2016-02-22T18:49:11Z")

</div>

I meant how do you configure Kerberos/SearchGuard in Spark without ES-Spark? Since ES-Spark is a library, it simply wraps the existing environment and its configuration.

As this is a Spark specific question, I think you'll get more support over at the Spark forums/mailing list.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:26pm UTC](https://discuss.elastic.co/t/spark-kerberos-searchguard-elasticsearch-1-7-3/41014/5 "2017-07-06T13:26:04Z")

</div>


