title: HBase does not run after ./start-hbase.sh - Permission Denied?
body: <p>I want to run HBase. I have installed hadoop completely and when I run <code>start-all.sh</code> , it works fine and gives me this output:</p>
  
  <pre><code>hduser@CSLAP106:/usr/local/hadoop/bin$ jps
  11956 SecondaryNameNode
  12046 JobTracker
  12193 TaskTracker
  11800 DataNode
  11656 NameNode
  12254 Jps
  </code></pre>
  
  <p>But when I want to run <code>start-hbase.sh</code> , it gives me some errors of <strong>permission denied</strong> which I do not understand why:</p>
  
  <pre><code>hduser@CSLAP106:/usr/local/hbase/hbase-0.94.6.1/bin$ ./start-hbase.sh
  localhost: starting zookeeper, logging to /usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-zookeeper-CSLAP106.out
  
  localhost: /usr/local/hbase/hbase-0.94.6.1/bin/hbase-daemon.sh: line 150: /usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-zookeeper-CSLAP106.log: Permission denied
  
  localhost: head: cannot open ‘/usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-zookeeper-CSLAP106.out’ for reading: No such file or directory
  
  /usr/local/hbase/hbase-0.94.6.1/bin/hbase-daemon.sh: line 150: /usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-master-CSLAP106.log: Permission denied
  
  head: cannot open ‘/usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-master-CSLAP106.out’ for reading: No such file or directory
  
  localhost: starting regionserver, logging to /usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-regionserver-CSLAP106.out
  
  localhost: /usr/local/hbase/hbase-0.94.6.1/bin/hbase-daemon.sh: line 150: /usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-regionserver-CSLAP106.log: Permission denied
  
  localhost: head: cannot open ‘/usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-hduser-regionserver-CSLAP106.out’ for reading: No such file or directory
  </code></pre>
  
  <p>after that, I tried to run <code>sudo ./start-hbase.sh</code> , and I got something more weird!</p>
  
  <pre><code>root@localhost's password:
  </code></pre>
  
  <p>I do not know <strong>what I am supposed to type here</strong>. anyway I just clicked <strong>Enter</strong> and it switched back to <code>hduser</code> again:</p>
  
  <pre><code>root@localhost's password: 
  root@localhost's password: localhost: Permission denied, please try again.
  
  root@localhost's password: localhost: Permission denied, please try again.
  
  localhost: Permission denied (publickey,password).
  starting master, logging to /usr/local/hbase/hbase-0.94.6.1/bin/../logs/hbase-root-  master-CSLAP106.out
  root@localhost's password: 
  root@localhost's password: localhost: Permission denied, please try again.
  
  root@localhost's password: localhost: Permission denied, please try again.
  
  localhost: Permission denied (publickey,password).
  hduser@CSLAP106:/usr/local/hbase/hbase-0.94.6.1/bin$
  </code></pre>
  
  <p>I put some lines from my <code>hbase-env.sh</code> and <code>hbase-site.xml</code> files in case they are needed:</p>
  
  <p><strong>hbase-env.sh</strong></p>
  
  <pre><code># File naming hosts on which HRegionServers will run.  $HBASE_HOME/conf/regionservers by    default.
  export HBASE_REGIONSERVERS=/usr/local/hbase/hbase-0.94.6.1/conf/regionservers
  
  # File naming hosts on which backup HMaster will run.  $HBASE_HOME/conf/backup-masters by default.
  export HBASE_BACKUP_MASTERS=/usr/local/hbase/hbase-0.94.6.1/conf/backup-masters
  
  # Tell HBase whether it should manage it's own instance of Zookeeper or not.
  export HBASE_MANAGES_ZK=true
  </code></pre>
  
  <p><strong>hbase-site.xml</strong></p>
  
  <pre><code>&lt;configuration&gt;
  &lt;property&gt;
          &lt;name&gt;hbase.rootdir&lt;/name&gt;
      &lt;value&gt;hdfs://localhost:54310/hbase&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
      &lt;name&gt;hbase.cluster.distributed&lt;/name&gt;
      &lt;value&gt;true&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p></p>
  
  <p>So, what do you think is wrong with HBase that it does not run! I am really getting exhausted with this. It has been weeks I am working on it and every time it comes up with a new error. I would really appreciate your time and effort to help me :)</p>