码迷,mamicode.com
首页 > 其他好文 > 详细

centos7安装hadoop完全分布式集群

时间:2019-06-24 18:17:08      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:com   int   centos7   ice   ons   avr   一起   cin   useradd   

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

centos7安装hadoop完全分布式集群

标签:com   int   centos7   ice   ons   avr   一起   cin   useradd   

原文地址:https://www.cnblogs.com/jiyang2018/p/11078574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!