<?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 spark authentication ldap in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/spark-authentication-ldap/m-p/110404#M73252</link>
    <description>&lt;P&gt;I'm new to Spark and appreciate if i can get some answers.&lt;/P&gt;&lt;P&gt;How can i enable spark authentication against LDAP in a non kerberized environment?&lt;/P&gt;&lt;P&gt;Looks like spark is connecting to Metastore directly...how can we force it to connect to hiveserver2?&lt;/P&gt;&lt;P&gt;Is there any way to suppress all the info it prints when we start/exit spark-sql?&lt;/P&gt;&lt;P&gt;every session i start it start using 4040 +1 and http &amp;amp; sparkdriver with randon ports, is there any way we can force spark to use subs et of ports instead of random ports?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2016 23:36:07 GMT</pubDate>
    <dc:creator>chrsvarma</dc:creator>
    <dc:date>2016-01-25T23:36:07Z</dc:date>
    <item>
      <title>spark authentication ldap</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-authentication-ldap/m-p/110404#M73252</link>
      <description>&lt;P&gt;I'm new to Spark and appreciate if i can get some answers.&lt;/P&gt;&lt;P&gt;How can i enable spark authentication against LDAP in a non kerberized environment?&lt;/P&gt;&lt;P&gt;Looks like spark is connecting to Metastore directly...how can we force it to connect to hiveserver2?&lt;/P&gt;&lt;P&gt;Is there any way to suppress all the info it prints when we start/exit spark-sql?&lt;/P&gt;&lt;P&gt;every session i start it start using 4040 +1 and http &amp;amp; sparkdriver with randon ports, is there any way we can force spark to use subs et of ports instead of random ports?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 23:36:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-authentication-ldap/m-p/110404#M73252</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2016-01-25T23:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: spark authentication ldap</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-authentication-ldap/m-p/110405#M73253</link>
      <description>&lt;OL&gt;
&lt;/OL&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/968/chrsvarma.html" nodeid="968"&gt;@Raja Sekhar Chintalapati&lt;/A&gt;&lt;/P&gt;&lt;LI&gt;There is no Spark authentication against LDAP in a non kerberized environment.  If a Spark job reads from HDFS and the user running the job does not have sufficient HDFS permission, Spark will fail to read data.&lt;/LI&gt;&lt;LI&gt;Spark HiveContext does not connect to HiveServer2. It connects to Hive metastore once you provide the Hive configuration (hive-site.xml) to Spark, else it creates its own metastore in it's working directory&lt;/LI&gt;&lt;LI&gt;I don't know a way to suppress the info in sparl-sql&lt;/LI&gt;&lt;LI&gt;The Spark Master UI is typically on the node with Driver running on port 4040.  You can define ports for the Driver, File Server, Executor, UI etc.   See doc &lt;A target="_blank" href="http://spark.apache.org/docs/latest/configuration.html#networking"&gt;here &lt;/A&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;See also setting Spark Configuratin here:  &lt;A target="_blank" href="https://spark.apache.org/docs/1.1.0/configuration.html"&gt;https://spark.apache.org/docs/1.1.0/configuration.html&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;See also for YARN Mode: &lt;A target="_blank" href="http://spark.apache.org/docs/latest/security.html"&gt;http://spark.apache.org/docs/latest/security.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Example&lt;/P&gt;&lt;/LI&gt;&lt;PRE&gt;SPARK_MASTER_OPTS="-Dspark.driver.port=7001 -Dspark.fileserver.port=7002 
 -Dspark.broadcast.port=7003 -Dspark.replClassServer.port=7004 
 -Dspark.blockManager.port=7005 -Dspark.executor.port=7006 
 -Dspark.ui.port=4040 -Dspark.broadcast.factory=org.apache.spark.broadcast.HttpBroadcastFactory"

SPARK_WORKER_OPTS="-Dspark.driver.port=7001 -Dspark.fileserver.port=7002 
 -Dspark.broadcast.port=7003 -Dspark.replClassServer.port=7004 
 -Dspark.blockManager.port=7005 -Dspark.executor.port=7006 
 -Dspark.ui.port=4040 -Dspark.broadcast.factory=org.apache.spark.broadcast.HttpBroadcastFactory"&lt;/PRE&gt;&lt;P&gt;Programmatic Example&lt;/P&gt;&lt;PRE&gt;import org.apache.spark.SparkConf
import org,apache.spark.SparkContext

val conf = new SparkConf()   
.setMaster(master)   
.setAppName("namexxx")   
.set("spark.driver.port", "7001")   
.set("spark.fileserver.port", "7002")  
.set("spark.broadcast.port", "7003")   
.set("spark.replClassServer.port", "7004")   
.set("spark.blockManager.port", "7005")   
.set("spark.executor.port", "7006")

val sc= new SparkContext(conf)&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jan 2016 09:16:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-authentication-ldap/m-p/110405#M73253</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-27T09:16:46Z</dc:date>
    </item>
  </channel>
</rss>

