Created 01-25-2016 03:36 PM
I'm new to Spark and appreciate if i can get some answers.
How can i enable spark authentication against LDAP in a non kerberized environment?
Looks like spark is connecting to Metastore directly...how can we force it to connect to hiveserver2?
Is there any way to suppress all the info it prints when we start/exit spark-sql?
every session i start it start using 4040 +1 and http & sparkdriver with randon ports, is there any way we can force spark to use subs et of ports instead of random ports?
Created 01-27-2016 01:16 AM
See also setting Spark Configuratin here: https://spark.apache.org/docs/1.1.0/configuration.html
Example
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"
Programmatic Example
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)
Created 01-27-2016 01:16 AM
See also setting Spark Configuratin here: https://spark.apache.org/docs/1.1.0/configuration.html
Example
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"
Programmatic Example
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)