Unable to start Spark-standalone in ubuntu
<p>I'm having trouble while starting spark standalone in my local computer. I'm following <a href="http://spark.apache.org/docs/latest/spark-standalone.html" rel="nofollow noreferrer">this</a> manual, which is pretty straightforward but i'm still missing something</p>

<p>When i run start-master.sh, it show the following errors:</p>

<pre><code>couto@ubuntu:~/Downloads/spark-1.6.2-bin-hadoop2.4/sbin$ sh start-master.sh 
start-master.sh: 31: start-master.sh: [[: not found
start-master.sh: 31: start-master.sh: [[: not found
start-master.sh: 45: start-master.sh: 0: not found
start-master.sh: 52: /home/couto/Downloads/spark-1.6.2-bin-hadoop2.4/bin/load-spark-env.sh: [[: not found
starting org.apache.spark.deploy.master.Master, logging to /home/couto/Downloads/spark-1.6.2-bin-hadoop2.4/logs/spark-couto-org.apache.spark.deploy.master.Master-1-ubuntu.out
start-master.sh: 78: [: false: unexpected operator
</code></pre>

<p>Nevertheless, the master seems to run right:</p>

<p><a href="https://i.stack.imgur.com/RzBfm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RzBfm.jpg" alt="enter image description here"></a></p>

<p>However, once I try to start a slave, it shows the following errors and no slave is included in the spark console.</p>

<pre><code>couto@ubuntu:~/Downloads/spark-1.6.2-bin-hadoop2.4/sbin$ sh start-slave.sh spark://localhost:7077
start-slave.sh: 42: start-slave.sh: [[: not found
start-slave.sh: 42: start-slave.sh: [[: not found
start-slave.sh: 42: start-slave.sh: [[: not found
start-slave.sh: 52: /home/couto/Downloads/spark-1.6.2-bin-hadoop2.4/bin/load-spark-env.sh: [[: not found
start-slave.sh: 68: start-slave.sh: function: not found
start-slave.sh: 70: shift: can't shift that many
</code></pre>

<p>I'm using jdk 1.8.0_91
Spark: spark-1.6.2-bin-hadoop2.4 (i also tried with the prebuilt version for hadoop2.6)</p>

<p>Using start-all.sh as suggested in the first comment:</p>

<pre><code>couto@ubuntu:~/Downloads/spark-1.6.2-bin-hadoop2.4/sbin$ sh start-all.sh 
start-all.sh: 30: start-all.sh: 0: not found
starting org.apache.spark.deploy.master.Master, logging to /home/couto/Downloads/spark-1.6.2-bin-hadoop2.4/logs/spark-couto-org.apache.spark.deploy.master.Master-1-ubuntu.out
localhost: ssh: connect to host localhost port 22: Connection refused
</code></pre>

<p>Can you please give me some indications? </p>