<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to create security filter for Spark UI in Spark on YARN in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-security-filter-for-Spark-UI-in-Spark-on-YARN/m-p/185727#M73348</link>
    <description>&lt;P&gt;I
 am trying to use a java filter to protect the access to spark ui, this 
by using the property spark.ui.filters; the problem is that when spark 
is running on yarn mode, that property is being allways overriden with the filter org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;spark.ui.filters: org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;And this properties are automatically added:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;spark.org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.param.PROXY_HOSTS: ip-x-x-x-226.eu-west-1.compute.internal&lt;BR /&gt;spark.org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.param.PROXY_URI_BASES: &lt;A href="http://ip-x-x-x-226.eu-west-1.compute.internal:20888/proxy/application_xxxxxxxxxxxxx_xxxx"&gt;http://ip-x-x-x-226.eu-west-1.compute.internal:20888/proxy/application_xxxxxxxxxxxxx_xxxx&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Any
 suggestion of how to add a java security filter so it does not 
get overriden, or maybe how to configure the security from hadoop side?&lt;/P&gt;&lt;P&gt;Environment:&lt;BR /&gt;AWS EMR, yarn cluster.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 06:40:47 GMT</pubDate>
    <dc:creator>jhonderson2007</dc:creator>
    <dc:date>2018-01-11T06:40:47Z</dc:date>
    <item>
      <title>How to create security filter for Spark UI in Spark on YARN</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-security-filter-for-Spark-UI-in-Spark-on-YARN/m-p/185727#M73348</link>
      <description>&lt;P&gt;I
 am trying to use a java filter to protect the access to spark ui, this 
by using the property spark.ui.filters; the problem is that when spark 
is running on yarn mode, that property is being allways overriden with the filter org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;spark.ui.filters: org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;And this properties are automatically added:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;spark.org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.param.PROXY_HOSTS: ip-x-x-x-226.eu-west-1.compute.internal&lt;BR /&gt;spark.org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.param.PROXY_URI_BASES: &lt;A href="http://ip-x-x-x-226.eu-west-1.compute.internal:20888/proxy/application_xxxxxxxxxxxxx_xxxx"&gt;http://ip-x-x-x-226.eu-west-1.compute.internal:20888/proxy/application_xxxxxxxxxxxxx_xxxx&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Any
 suggestion of how to add a java security filter so it does not 
get overriden, or maybe how to configure the security from hadoop side?&lt;/P&gt;&lt;P&gt;Environment:&lt;BR /&gt;AWS EMR, yarn cluster.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:40:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-security-filter-for-Spark-UI-in-Spark-on-YARN/m-p/185727#M73348</guid>
      <dc:creator>jhonderson2007</dc:creator>
      <dc:date>2018-01-11T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create security filter for Spark UI in Spark on YARN</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-security-filter-for-Spark-UI-in-Spark-on-YARN/m-p/185728#M73349</link>
      <description>&lt;P&gt;This is solved by using the property hadoop.http.authentication.type to
specify a custom Java Handler objects that contains the authentication
logic. This class only has to implement the
interface org.apache.hadoop.security.authentication.server.AuthenticationHandler.
See:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r2.7.3/hadoop-project-dist/hadoop-common/HttpAuthentication.html"&gt;https://hadoop.apache.org/docs/r2.7.3/hadoop-project-dist/hadoop-common/HttpAuthentication.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:12:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-security-filter-for-Spark-UI-in-Spark-on-YARN/m-p/185728#M73349</guid>
      <dc:creator>jhonderson2007</dc:creator>
      <dc:date>2018-03-05T22:12:35Z</dc:date>
    </item>
  </channel>
</rss>

