title: Problems using start-dfs.sh
body: <p>I have used this link to create a 4 node cluster: <a href="https://blog.insightdatascience.com/spinning-up-a-free-hadoop-cluster-step-by-step-c406d56bae42" rel="nofollow noreferrer">https://blog.insightdatascience.com/spinning-up-a-free-hadoop-cluster-step-by-step-c406d56bae42</a>, but once I reach the part to start the hadoop cluster I get errors like so:</p>
  
  <p>$HADOOP_HOME/sbin/start-dfs.sh</p>
  
  <pre><code>Starting namenodes on [namenode_dns]
  namenode_dns: mkdir: cannot create 
  directory ‘/usr/local/hadoop/logs’: Permission denied
  namenode_dns: chown: cannot access 
  '/usr/local/hadoop/logs': No such file or directory
  namenode_dns: starting namenode, logging 
  to /usr/local/hadoop/logs/hadoop-ubuntu-namenode-ip-172-31-2-168.out
  namenode_dns: 
  /usr/local/hadoop/sbin/hadoop-daemon.sh: line 159: 
  /usr/local/hadoop/logs/hadoop-ubuntu-namenode-ip-172-31-2-168.out: No 
  such file or directory
  namenode_dns: head: cannot open 
  '/usr/local/hadoop/logs/hadoop-ubuntu-namenode-ip-172-31-2-168.out' 
  for reading: No such file or directory
  namenode_dns: 
  /usr/local/hadoop/sbin/hadoop-daemon.sh: line 177: 
  /usr/local/hadoop/logs/hadoop-ubuntu-namenode-ip-172-31-2-168.out: No 
  such file or directory
  namenode_dns: 
  /usr/local/hadoop/sbin/hadoop-daemon.sh: line 178: 
  /usr/local/hadoop/logs/hadoop-ubuntu-namenode-ip-172-31-2-168.out: No 
  such file or directory
  ip-172-31-1-82: starting datanode, logging to 
  /usr/local/hadoop/logs/hadoop-ubuntu-datanode-ip-172-31-1-82.out
  ip-172-31-7-221: starting datanode, logging to 
  /usr/local/hadoop/logs/hadoop-ubuntu-datanode-ip-172-31-7-221.out
  ip-172-31-14-230: starting datanode, logging to 
  /usr/local/hadoop/logs/hadoop-ubuntu-datanode-ip-172-31-14-230.out
  Starting secondary namenodes [0.0.0.0]
  0.0.0.0: mkdir: cannot create directory ‘/usr/local/hadoop/logs’: 
  Permission denied
  0.0.0.0: chown: cannot access '/usr/local/hadoop/logs': No such file 
  or directory
  0.0.0.0: starting secondarynamenode, logging to 
  /usr/local/hadoop/logs/hadoop-ubuntu-secondarynamenode-ip-172-31-2-
  168.out
  0.0.0.0: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 159: 
  /usr/local/hadoop/logs/hadoop-ubuntu-secondarynamenode-ip-172-31-2-
  168.out: No such file or directory
  0.0.0.0: head: cannot open '/usr/local/hadoop/logs/hadoop-ubuntu-
  secondarynamenode-ip-172-31-2-168.out' for reading: No such file or 
  directory
  0.0.0.0: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 177: 
  /usr/local/hadoop/logs/hadoop-ubuntu-secondarynamenode-ip-172-31-2-
  168.out: No such file or directory
  0.0.0.0: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 178: 
  /usr/local/hadoop/logs/hadoop-ubuntu-secondarynamenode-ip-172-31-2-
  168.out: No such file or directory
  </code></pre>
  
  <p>Here is what happens when I run jps:</p>
  
  <pre><code>20688 Jps
  </code></pre>
  
  <p>I'm not sure where I went wrong with the configuration and such. I am new to hadoop and map reduce so please keep it simple.</p>