日韩性视频-久久久蜜桃-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集群的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 波多野结衣在线播放 | 成年人福利网站 | 国产动漫av | 九九热视频在线 | 国产传媒视频在线观看 | 欧美成人精品激情在线视频 | 亚洲电影影音先锋 | 国产18在线观看 | 色接久久 | 国产欧美日韩在线视频 | 国产成人午夜精品无码区久久 | 国产三级第一页 | 五月激情啪啪 | 欧美一区二区三区四区五区 | 国产精品欧美性爱 | 日韩一区二区在线观看 | 国产精品815.cc红桃 | 97超碰人人爱| 亚洲天堂中文字幕 | 97精品国产97久久久久久免费 | 张柏芝54张无删码视频 | 亚洲女同女同女同女同女同69 | 99久在线精品99re8热 | 怡红院男人天堂 | 中文字幕日韩无 | 白白色2012年最新视频 | 日韩精品一区二区三区网站 | 中文字幕免费一区二区 | 男人爆操女人 | 欧洲金发美女大战黑人 | 亚洲欧美伦理 | 成人精品网 | 精品国产aⅴ | 综合第一页 | 日韩中文字幕在线视频 | 亚洲精品97久久中文字幕 | 久久有精品 | 亚洲国产一区二区三区 | np视频| 欧美丝袜一区二区三区 | 午夜性色福利影院 | 俺来也在线视频 | 免费在线成人av | 亚洲精品国产电影 | 中文字幕婷婷 | 艳母日本动漫在线观看 | 国产又粗又猛 | 国产理论影院 | 久久精品国产成人av | 少妇性高潮视频 | 亚洲av毛片成人精品 | 国产日韩欧美在线播放 | 骚虎免费视频 | 欧美色图亚洲激情 | 国产亚洲小视频 | 四虎视频在线观看 | 精品亚洲一区二区三区四区五区 | 日本不卡一区在线观看 | 亚洲va久久久噜噜噜久久天堂 | 亚洲人成在线播放 | 91免费视 | 天天干天天干天天干天天 | 日本不卡高清视频 | 在线观看免费大片 | 五月深爱网 | 色牛av | 中文字幕精品一区久久久久 | 日本高清免费观看 | 又粗又大又硬毛片免费看 | 精品少妇3p| 夜夜躁很很躁日日躁麻豆 | 草莓视频成人在线 | 东方av正在进入 | 一区二区三区美女视频 | 最近中文字幕免费 | 国产高清在线精品 | 三级做爰第一次 | 久久91| 亚洲奶汁xxxx哺乳期 | 一级片免费的 | 国语对白做受69 | 1024日韩 | 色哟哟免费视频 | 欧美日韩美女 | 99久免费精品视频在线观78 | 免费超碰在线观看 | 亚洲中文字幕97久久精品少妇 | 国产富婆一区二区三区 | 日韩精品在线观看AV | 久久国产一区二区三区 | 欧美三级大片 | 国产精品视频免费在线观看 | 污污视频网站免费观看 | 91一二区 | 狠狠操狠狠操狠狠操 | 五月天在线 | 蜜桃视频欧美 | 亚洲国产精品天堂 | 欧美成人黄色网 |