You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Samy Dindane <sa...@dindane.com> on 2016/11/09 15:20:36 UTC

How to impersonate a user from a Spark program

Hi,

In order to impersonate a user when submitting a job with `spark-submit`, the `proxy-user` option is used.
Is there a similar feature when running a job inside a Scala program? Maybe by specifying some configuration value?

Thanks.

Samy

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Re: How to impersonate a user from a Spark program

Posted by Jacek Laskowski <ja...@japila.pl>.
Hi Samy,

I don't think there's another option that the command-line
--proxy-user - see [1] and [2].

File a JIRA issue to have it.

[1] https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala#L424
[2] https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L163-L164

Pozdrawiam,
Jacek Laskowski
----
https://medium.com/@jaceklaskowski/
Mastering Apache Spark 2.0 https://bit.ly/mastering-apache-spark
Follow me at https://twitter.com/jaceklaskowski


On Wed, Nov 9, 2016 at 4:20 PM, Samy Dindane <sa...@dindane.com> wrote:
> Hi,
>
> In order to impersonate a user when submitting a job with `spark-submit`,
> the `proxy-user` option is used.
> Is there a similar feature when running a job inside a Scala program? Maybe
> by specifying some configuration value?
>
> Thanks.
>
> Samy
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscribe@spark.apache.org
>

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org