title: i have trouble with livy-server start command enviroment variable missing
body: <p>hi im currently trying to make a REST api server with apache livy
  i know i'm not good enough for these kinds of delicated programming.
  but i really want to complete my process</p>
  <p>my programming Sequence is like below</p>
  <ul>
  <li>my computer is windows os</li>
  <li>DOCKER container with DOCK</li>
  <li>build Dockerfile and run docker</li>
  <li>all-spark-notebook provides jupyter notebook</li>
  <li>i use terminal with jupyter notebook</li>
  </ul>
  <p>this is my dockerfile</p>
  <pre><code>#base image jupyter/all-spark-notebook
  FROM jupyter/all-spark-notebook
  
  # commands
  USER root
  
  
  ENV SPARK_HOME /usr/local/spark-3.2.0-bin-hadoop3.2:$SPARK_HOME
  ENV HADOOP_CONF_DIR /home/jovyan/hadoop-3.3.1/conf:$HADOOP_CONF_DIR
  
  RUN wget https://dlcdn.apache.org/incubator/livy/0.7.1-incubating/apache-livy-0.7.1-incubating-bin.zip
  RUN wget https://dlcdn.apache.org/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz
  RUN apt-get install unzip
  RUN tar -xvzf hadoop-3.3.1.tar.gz
  RUN unzip apache-livy-0.7.1-incubating-bin.zip
  RUN rm apache-livy-0.7.1-incubating-bin.zip
  RUN rm hadoop-3.3.1.tar.gz
  
  EXPOSE 8998
  </code></pre>
  <p>with Dockerfile i downloaded apache livy and hadoop,
  and modified enviroment variables</p>
  <p>the base image for docker is all-spark-notebook</p>
  <p>at cmd i run docker with command</p>
  <pre><code>docker run --rm -p8888:8888 --user root -e GRANT_SUDO=yes livy
  </code></pre>
  <p>at the terminal i find livy directory and /bin/livy-server start and faced up with error</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.IllegalArgumentException: livy requires the SPARK_HOME environment variable
  </code></pre>
  <p>but i modified enviroment variable path &quot;SPARK_HOME&quot; with Dockerfile.</p>
  <p>when i checked in terminal it was fine the result was like</p>
  <pre><code>(base) jovyan@o...:~/$ echo $SPARK_HOME
  /usr/local/spark:/usr/local/spark
  </code></pre>
  <p>i want to know why livy server can't find the SPARK_HOME</p>
  <p>my english is bad sorry</p>