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 <grigorev-...@yandex.ru> wrote: > GET requests like *http://worker:4040/api/v1/applications > <http://worker:4040/api/v1/applications> *or > *http://master:6066/v1/submissions/status/driver-20170414025324-0000 > <http://master:6066/v1/submissions/status/driver-20170414025324-0000> *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 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 <grigorev-...@yandex.ru> wrote: > >> Hello all, >> >> I've added own spark.ui.filters to enable basic authentication to access >> to >> Spark web UI. It works fine, but I still can do requests to spark API >> without any authentication. >> Is there any way to enable authentication for API endpoints? >> >> P.S. spark version is 2.1.0, deploy mode is standalone. >> >> >> >> -- >> View this message in context: http://apache-spark-user-list. >> 1001560.n3.nabble.com/Spark-API-authentication-tp28601.html >> Sent from the Apache Spark User List mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe e-mail: user-unsubscr...@spark.apache.org >> >> > >