centos7安装hadoop完全分布式集群

groupadd test             //新建test工作组

useradd -g test phpq        //新建phpq用户并增加到test工作组

userdel 选项 用户名

常用的选项是 -r,它的作用是把用户的主目录一起删除。

chmod u+w /etc/sudoers

vim /etc/sudoers

在文件的如下位置,为hadoop用户和spark用户添加一行即可:

  • root ALL=(ALL) ALL
  • hadoop ALL=(ALL) ALL
  • spark ALL=(ALL) ALL

CentOS 7.0默认使用的是firewall作为防火墙

查看防火墙状态

firewall-cmd --state
  • 1

停止firewall

systemctl stop firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service 

关闭selinux 
进入到/etc/selinux/config文件

vi /etc/selinux/config

将SELINUX=enforcing改为SELINUX=disabled

猜你喜欢

转载自www.cnblogs.com/jiyang2018/p/11078574.html