In my case

export SPARK_HOME=/d4T/hduser/spark-3.1.1-bin-hadoop3.2
export PATH=$SPARK_HOME/bin:*$SPARK_HOME/sbin*:$PATH

 which start-master.sh
/d4T/hduser/spark-3.1.1-bin-hadoop3.2/sbin/start-master.sh

You need to add *$SPARK_HOME/sbin* to your path as well

HTH



   view my Linkedin profile
<https://www.linkedin.com/in/mich-talebzadeh-ph-d-5205b2/>



*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.




On Mon, 29 Mar 2021 at 19:19, GUINKO Ferdinand <tonguimferdin...@guinko.net>
wrote:

> Hi,
>
> I have installed Docker, Spark 3.1.1 and Hadoop 2.7 on Ubuntu 18.04.
>
> After I have executed the following 3 lines
>
> echo "export SPARK_HOME=/opt/spark" >> ~/.profile
> echo "export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin" >> ~/.profile
> echo "export PYSPARK_PYTHON=/usr/bin/python3" >> ~/.profile
>
> I tried to start the master server by typing
>
> start-master.sh
>
> and got the following error message
>
> bash: start-master.sh: command not found
>
> Thank you for any help.
> Ferdinand
> --
> «Ce dont le monde a le plus besoin, c'est d'hommes, non pas des hommes
> qu'on achète et qui se vendent, mais d'hommes profondément loyaux et
> intègres, des hommes qui ne craignent pas d'appeler le péché par son nom,
> des hommes dont la conscience soit aussi fidèle à son devoir que la
> boussole l'est au pôle, des hommes qui défendraient la justice et la vérité
> même si l'univers s'écroulait.» Ellen Gould WHITE, education, P. 55

Reply via email to