Re: Spark API authentication

2017-04-14 Thread Saisai Shao
IIUC auth filter on the Live UI REST API should already be supported, the fix in SPARK-19652 is mainly for the History UI to support per app based ACL. For application submission REST API in standalone mode, I think currently it is not supported, it is not a bug. On Fri, Apr 14, 2017 at 6:56 PM,

Re: Spark API authentication

2017-04-14 Thread Sergey Grigorev
Thanks for help! I've found the ticket with a similar problem https://issues.apache.org/jira/browse/SPARK-19652. It looks like this fix did not hit to 2.1.0 release. You said that for the second example custom filter is not supported. It is a bug or expected behavior? On 14.04.2017 13:22, Sa

Re: Spark API authentication

2017-04-14 Thread Saisai Shao
AFAIK, For the first line, custom filter should be worked. But for the latter it is not supported. On Fri, Apr 14, 2017 at 6:17 PM, Sergey Grigorev wrote: > GET requests like *http://worker:4040/api/v1/applications > *or > *http://master:6066/v1/submissi

Re: Spark API authentication

2017-04-14 Thread Sergey Grigorev
GET requests like *http://worker:4040/api/v1/applications *or *http://master:6066/v1/submissions/status/driver-20170414025324- *return successful result. But if I open the spark master web ui then it requests username and password. On 14.04.2017 12:46, Saisai Shao wrote: Hi, What specifi

Re: Spark API authentication

2017-04-14 Thread Saisai Shao
Hi, What specifically are you referring to "Spark API endpoint"? Filter can only be worked with Spark Live and History web UI. On Fri, Apr 14, 2017 at 5:18 PM, Sergey wrote: > Hello all, > > I've added own spark.ui.filters to enable basic authentication to access to > Spark web UI. It works fi