日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

Windows下安装Cygwin配置Hadoop集群

發布時間:2025/3/21 windows 16 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Windows下安装Cygwin配置Hadoop集群 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Hadoop集群一般是配置到Linux系統之上,如果電腦用的是Windows系統,那么可以通過虛擬機安裝Linux系統或者在Windows上安裝Cygwin來模擬Linux環境,從而搭建Hadoop集群,用于開發和測試也是可以的。

本文講的是在Windows下安裝Cygwin模擬Linux環境,從而配置Hadoop集群的方法。


一、下載Cygwin,點擊前往下載


二、在Windows上安裝Cygwin


安裝

1.雙擊setup.exe

2.按照安裝提示“下一步”

3.選擇從“互聯網”安裝:


4.選擇安裝的路徑,一般是C:\Cygwin(也可以安裝在別的路徑下),選擇本地臨時目錄,用于存放下載的軟件;選擇您連接互聯網的方式,一般選“直接連接”就可以了。

5.選擇下載源:(課選擇中國的鏡像,下載更快些)

6.根據安裝提示,選擇需要安裝的軟件包,完成安裝。

這里要勾選(帶叉號的方框表示被勾選,空的方框表示未被勾選)的軟件包有:

vim/vi
ssh(openssh) 【Net Category下
ssl(openssl) ?Net Category下
apt-cyg
sed (若需要Eclipse,必須sed)【BaseCategory下
subversion 【Devel Category下】,還有其他將來開發需要用到的組件,展開該組件,點擊前面的keep,使其變成版本號
Base組件的全部,點擊Base后面的Default,使其變為Install

System組件下的util-linux組件,用于使用一些常用的more等功能進行調試


點擊【下一步】繼續安裝。

雙擊桌面的Cygwin圖標,即可啟動Cygwin里的Bash。
或者,你可將C:/Cygwin/bin加到%PATH%當中,您就可以直接在cmd.exe里面使用Linux命令了,比如less, cat, wc , wget
如果有一個Bash腳本,可以直接用C:/Cygwin/bin/bash.exe X:/scripts/Monitor.sh的形式調用。

三、Cygwin安裝完畢,下面配置Hadoop集群

1、在Windows上安裝Java JDK環境,并配置環境變量。(若Windows下已經安裝了Java環境并配置好,則這一步略過)不用在Cygwin里安裝Java JDK,Cygwin用Windows上的Java JDK,并且不需要在Cygwin下的/etc/profile文件中設置Java路徑,在Hadoop/conf/hadoop-env.sh中也不需要設置Java環境。

2、可以在Cygwin中設置/etc/hosts和/etc/hostname,我這里沒有設置。

3、在Cygwin中配置SSH(重要!!)

_____________________

$ ssh-host-config
*** Query: Overwrite existing /etc/ssh_config file? (yes/no)yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no)yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no)yes
*** Info: Updating /etc/sshd_config file




*** Warning: The following functions require administrator privileges!


*** Query: Do you want to install sshd as a service?
*** Query: (Say"no"if it is already installed as a service) (yes/no)yes
*** Query: Enter the value of CYGWIN for the daemon: []ntsec tty
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires. You need to have or to create a privileged
*** Info: account. This script will help you do so.


*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).


*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.


*** Info: Note that creating a new user requires that the current account


*** Info: No privileged account could be found.


*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no)yes 【no也可以】
*** Query: Enter the new user name:dev
*** Query: Reenter:dev


*** Query: Create new privileged user account 'dev'? (yes/no)yes
*** Info: Please enter a password for new user dev. Please be sure
*** Info: that this password matches the password rules given on your system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
*** Query: Reenter:


*** Info: User 'dev' has been created with password 'passw0rd'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the 'dev' account.


*** Info: Also keep in mind that the user 'dev' needs read permissions
*** Info: on all users' relevant files for the services running as 'dev'.
*** Info: In particular, for the sshd server all users' .ssh/authorized_keys
*** Info: files must have appropriate permissions to allow public key
*** Info: authentication. (Re-)running ssh-user-config for each user will set
*** Info: these permissions corrently. [Similary restrictions apply, for
*** Info: instance, for .rhosts files if the rshd server is running, etc].




*** Info: The sshd service has been installed under the 'dev'
*** Info: account. To start the service now, call `net start sshd' or
*** Info: `cygrunsrv -S sshd'. Otherwise, it will start automatically
*** Info: after the next reboot.


*** Info: Host configuration finished. Have fun!

_____________________


4、Windows下-【運行】-【services.msc】,找到【CYGWIN sshd】服務,并開啟該服務,可以設置為自動開啟。



5、在Cygwin命令行中輸入ssh-keygen -t rsa生成密鑰,并復制到authorized_keys中,執行相應的一系列操作,具體參見Hadoop集群搭建。


6、在Cygwin下安裝并配置Hadoop文件,具體參見Hadoop集群搭建

7、運行WordCount實例,確認CygWin下Hadoop集群配置成功,具體參見Hadoop集群搭建

8、開啟Hadoop進程,在Windows中打開瀏覽器中輸入localhost:50030和localhost:50070查看信息。

9、在Windows中配置Eclipse開發環境,在Cygwin開啟Hadoop的情況下,在Windows下用eclipse開發MapReduce程序。參見Eclipse安裝Hadoop插件配置Hadoop開發環境和Hadoop+eclipse運行MapReduce程序。


參考:

[1]Cygwin的安裝

總結

以上是生活随笔為你收集整理的Windows下安装Cygwin配置Hadoop集群的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 四虎影视永久免费 | 这里精品 | 欧美性大战xxxxx久久久 | 麻豆免费在线观看视频 | 五月天激情社区 | 日韩a√ | 51国产偷自视频区视频 | 日本人妻丰满熟妇久久久久久 | 久久精品无码Av中文字幕 | 黄色网页观看 | 91亚洲国产 | av大片网址 | 性生生活大片又黄又 | 国产精品igao| 久久无吗视频 | 欧美aaa视频 | 在线视频a| 午夜片在线观看 | 国产在线v | 天天看夜夜操 | 亚洲欧美日韩一区二区三区在线观看 | 亚洲男人天堂2022 | 青青青免费在线 | 在线观看欧美日韩视频 | 51国产在线| 国产资源在线播放 | 精品乱人伦一区二区三区 | 非洲黄色片 | free性欧美hd精品4k | 激情五月视频 | 91九色国产ts另类人妖 | 亚洲特级黄色片 | 国产精品嫩草影院桃色 | 国产精品理论片在线观看 | 麻豆911| 久久深夜| 日本午夜三级 | 一起操网址 | 在线看中文字幕 | 久久久久久人妻一区二区三区 | 日本福利片在线观看 | 国产av无码专区亚洲a∨毛片 | 美国一级片网站 | 国产高清一区在线观看 | 精品+无码+在线观看 | 欧美 日韩 国产 成人 在线 | 国产精品96| 老头老太吃奶xb视频 | 中文字幕av专区 | 美女诱惑一区 | 日本视频免费看 | 无码人妻丰满熟妇区毛片蜜桃精品 | 神马一区二区三区 | www视频在线观看免费 | 国产精品日韩无码 | 黄色a级大片| 美女aaa| 午夜精品一区二区三 | 人妻熟女一区二区aⅴ水 | 国产嫩草在线观看 | 国产性猛交╳xxx乱大交 | 天天燥日日燥 | 国产成人精品在线观看 | 午夜丰满寂寞少妇精品 | 国产精品亚洲专区无码牛牛 | 精品一区二区三区免费毛片爱 | 免费久久久 | 亚洲色图校园春色 | 老熟妇仑乱视频一区二区 | 久久精品韩国 | 在线视频 一区二区 | 亚洲精品在线免费播放 | 成人免费黄色大片 | 国产伦精品一区二区三区视频网站 | 日本精品久久久久中文字幕 | 久久精品aaaaaa毛片 | 日韩在线视频网址 | 国产污污视频在线观看 | 亚洲精品久久久久久一区二区 | 黄色毛毛片 | 日日操日日干 | www.久久综合 | av不卡中文字幕 | 久久精品色欲国产AV一区二区 | 日韩中文字幕国产 | 国产猛男猛女超爽免费视频 | 亚洲区偷拍 | 欧美a在线 | 国产中文一区二区三区 | 国产免费av网站 | 欧美日韩中文字幕 | 欧美日韩不卡合集视频 | 狠狠干狠狠操视频 | 一级a性色生活片久久无 | 亚洲人 女学生 打屁股 得到 | 大号bbwassbigav女 | 直接看的av | 亚洲女同av| 夜夜操夜夜爽 |