Ubuntu下创建hadoop组和hadoop用户

Ubuntu下创建hadoop组和hadoop用户

ID:43446150

大小:104.92 KB

页数:16页

时间:2019-10-02

Ubuntu下创建hadoop组和hadoop用户_第1页
Ubuntu下创建hadoop组和hadoop用户_第2页
Ubuntu下创建hadoop组和hadoop用户_第3页
Ubuntu下创建hadoop组和hadoop用户_第4页
Ubuntu下创建hadoop组和hadoop用户_第5页
资源描述:

《Ubuntu下创建hadoop组和hadoop用户》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、一、在Ubuntu下仓【J建hadoop组和hadoop用户增加hadoop用户组,同时在该组里增加hadoop用户,后续在涉及到hadoop操作时,我们使用该用户。1、创建hadoop用户组liusnouqian^ubuntu:sudoaddgrouphadoop[sudo]passwordforliushouqtan:Addinggrouphadoop'(GID1001)・・・Donee2、仓ij建hadoop用户sudoadduser-ingrouphadoophadoop回车后会提示输入新的UNIX密码,这是新建用户hadoop的密码,输入回车即可。如果不输入密码,

2、冋车后会重新提示输入密码,即密码不能为空。最后确认信息是否正确,如杲没问题,输入Y,回车即可。ltushouqtan@ubuntu:*$sudoadduser-ingrouphadoophaoopAddinguser'haoop*••・Addingnewuserhaoop'(1001)withgrouphadoop'・・・Creatinghomedirectory'/home/haoop*・・・Copyingfilesfrom'/etc/skel'•••EnternewUNIXpassword:RetypenewUNIXpassword:Nopasswordsupplied

3、EnternewUNIXpassword:RetypenewUNIXpassword:passwd:passwordupdatedsuccessfullyChangingtheusertnformationforhaoopEnterthenewvalue,orpressENTERforthedefaultFullName[]:RoomNumber[]:WorkPhone[]:HomePhone[]:Other[]:Istheinformationcorrect?[Y/n]Y3、为hadoop用户添加权限输入:sudogedit/etc/sudoers回车,打开sudoers

4、文件给hadoop用八赋予和root用八同样的权限liushouqtan@ubuntu:〜$sudogedit/etc/sudoersltushouqtan@ubun

5、二、用新增加的hadoop用户登录Ubuntu系统三、安装sshsudoapt-getinstallopenssh-serverhaoop@ubuntu:~$sudoapt・getinstallopenssh・server[sudo]passwordforhaoop:Readingpackagelists…DoneBuildingdependencytreeReadingstateinformation・・・

6、DoneThefollowingextrapackageswillbeinstalled:libck・connecto「0ncurses・te「Eopenssh・sftp・serverpython-requestspython-urlltb3ssh-tmport-tdSuggestedpackages:rsshmolly・guardmonkeysphereThefollowingNEWpackageswillbeinstalled:libck-connector©ncurses-ternopenssh・se「veropenssh-sftp-serverpython-requ

7、estspython-urlltb3ssh-tmport-tdOupgraded,7newlyinstalled,6toremoveand7notupgraded・Needtoget698kBofarchives・Afterthisoperation,3,832kBofadditionaldiskspacewillbeused.Doyouwanttocontinue?[Y/n]Y0%[Connectingtous.archive.ubuntu.com]

8、安装完成后,启动服务sudo/etc/init.d/sshstart查看服务是否正确启动:ps-e

9、grepsshhado

10、op@ubuntu:~$sudo/etc/xnxt.d/sshstarthadoop@ubuntu:~$ps

11、grepssh2153?00:00:00ssh・agent4046?O0:O0:0O!5sh・agent6216?00:00:00<5shd设置免密码登录,生成私钥和公钥ssh-keygen-trsa-P超大/••e«・+iadoop@ubuntu:-$ssh-keygen・trsa・PGeneratingpubltc/prtvatersakeypair,interfiletnwhichtosavethek

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。