title: When does spark-env.sh runs?
body: <p>I am assuming that spark-env.sh runs when I start the spark cluster with </p>
  
  <pre><code>sbin/start-all.sh
  </code></pre>
  
  <p>But, somehow, all environment variables I set inside spark-env.sh are not set after </p>
  
  <p>What is wrong?</p>
  
  <ol>
  <li>Spark-env.sh does not run when I restart spark cluster</li>
  <li>Something is wrong with my spark-env.sh, maybe the syntax</li>
  <li>The env variables are set, I just cannot see it ...</li>
  </ol>