title: How to add spark.executor.extraClassPath in spark-conf using bootsrap action in EMR
body: <p>I am trying to load data from Netezza to AWS. I want to add spark.executor.extraClassPath and spark.driver.extraClassPath in spark-defaults.conf in bootstrap action. Please find below updconf.sh(Bootstrap action)</p>
  
  <pre><code>#!/bin/bash
  sudo aws s3 cp s3://my-bucket/nzjdbc.jar /usr/lib/sqoop/lib/ --sse aws:kms --sse-kms-key-id 'xxxxxxxxxxxxxxxxxxxxxx'
  echo "updating spark-defaults.conf"
  sudo chmod 777 /home/hadoop/spark/conf/spark-defaults.conf
  sudo echo &gt;&gt; /home/hadoop/spark/conf/spark-defaults.conf
  driverstr='/usr/lib/sqoop/lib/nzjdbc.jar' 
  sudo echo "export spark.executor.extraClassPath=`echo $driverstr`"&gt;&gt;/home/hadoop/spark/conf/spark-defaults.conf
  sudo echo "export spark.driver.extraClassPath=`echo $driverstr`"&gt;&gt;/home/hadoop/spark/conf/spark-defaults.conf
  </code></pre>
  
  <p>But I am getting '/etc/spark/conf/spark-defaults.conf: No such file or directory' error. 
  How can I do this? </p>