HBase does not run after ./start-hbase.sh - Permission Denied?

浪尽此生 提交于 2019-12-04 10:00:57

you say the output of ls -l start-hbase.sh is :

-rwxr-xr-x 1 root root 1872 huhti 4 2013 start-hbase.sh

if you want to know what user and group you are logging with , there us simple way:

touch test
ls -l test

and check user:group ...

the problem is user owner and group owner of script.. you have two solutions:

1) sudo chown hduser:hduser start-hbase.sh  #here hduser is example...you should know what user and group you have,,,

inorder to make it your slave...with executable state(sudo chmod +x start-hbase.sh)

2) you can be root by: "su root" or "sudo su" or "sudo bash"

and then execute the script...

If you still have problem after changing the permission of start-hbase.sh then run following command

sudo chown -R hduser:hadoop /usr/local/hbase

Give permission to 'hbase' directory to write log file..

I hope this will help to other folks...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!