Hi Thanks a lot, i used property file to resolve the issue. I think documentation should mention it though.
On Tue, 28 Feb 2017 at 5:05 am, Marcelo Vanzin <van...@cloudera.com> wrote: > > none of my Config settings > > Is it none of the configs or just the queue? You can't set the YARN > queue in cluster mode through code, it has to be set in the command > line. It's a chicken & egg problem (in cluster mode, the YARN app is > created before your code runs). > > --property-file works the same as setting options in the command > line, so you can use that instead. > > > On Sun, Feb 26, 2017 at 4:52 PM, ayan guha <guha.a...@gmail.com> wrote: > > Hi > > > > I am facing an issue with Cluster Mode, with pyspark > > > > Here is my code: > > > > conf = SparkConf() > > conf.setAppName("Spark Ingestion") > > conf.set("spark.yarn.queue","root.Applications") > > conf.set("spark.executor.instances","50") > > conf.set("spark.executor.memory","22g") > > conf.set("spark.yarn.executor.memoryOverhead","4096") > > conf.set("spark.executor.cores","4") > > conf.set("spark.sql.hive.convertMetastoreParquet", "false") > > sc = SparkContext(conf = conf) > > sqlContext = HiveContext(sc) > > > > r = sc.parallelize(xrange(1,10000)) > > print r.count() > > > > sc.stop() > > > > The problem is none of my Config settings are passed on to Yarn. > > > > spark-submit --master yarn --deploy-mode cluster ayan_test.py > > > > I tried the same code with deploy-mode=client and all config are passing > > fine. > > > > Am I missing something? Will introducing --property-file be of any help? > Can > > anybody share some working example? > > > > Best > > Ayan > > > > -- > > Best Regards, > > Ayan Guha > > > > -- > Marcelo > -- Best Regards, Ayan Guha