Hadoop tutorial - 1 - 環境搭建 2015-3-17

hadoop core:php

http://www.apache.org/dyn/closer.cgi/hadoop/core/html

書籍:linux

hadoop權威指南(hadoop the definitive guide) 粗略讀,知道相應知識在哪裏就能夠,後面當工具書用git

書籍源碼:github

https://github.com/tomwhite/hadoop-book/tree/1eapache

官方文檔:centos

http://hadoop.apache.org/docs/r1.0.4/cn/網絡

工具:ssh

virtualbox 4.2.4-81684-win.exeide

內存:700M (<652M 系統進入text mode安裝模式,沒有圖形界面)

硬盤:10G

centos 6.3->6.7

http://wiki.centos.org/Download

 

安裝centos 

root/123456或centos

type: basic server

 

網絡:

Host-only

 

Q:沒法上網

【正解】A: 主機經過無線上網,纔會有「家庭網絡鏈接」的選項,本地鏈接-屬性-共享-勾選-「家庭網絡鏈接」-選擇"VirtualBox Host-Only Network"

需重啓網卡並從新登陸logout或者執行命令hostname master

Q:沒法上網

【正解】A: 主機經過無線上網,纔會有「家庭網絡鏈接」的選項,本地鏈接-屬性-共享-勾選-「家庭網絡鏈接」-選擇"VirtualBox Host-Only Network"

【正解】A: 重裝無線網卡驅動

A: 或者先用http://www.examw.com/linux/all/200393/ ,安裝ssh客戶端後,再切回host only.  

A: rpm安裝http://blog.csdn.net/musou_ldns/article/details/8331527

    http://rpmfind.net/linux/rpm2html/search.php?query=libedit.so.0(ftp://rpmfind.net/linux/centos/6.6/os/i386/Packages/libedit-2.11-4.20080712cvs.1.el6.i686.rpm)

http://rpmfind.net/linux/rpm2html/search.php?query=openssh-clients&submit=Search+...&system=&arch=


 

配置虛擬機

ip映射文件

vi /etc/hosts

末尾添加(之後配置其它機子IP)

192.168.137.101 centos01

192.168.137.101 centos02

192.168.137.101 centos03

192.168.137.101 centos04

192.168.137.101 centos05

192.168.137.101 centos06

192.168.137.101 centos07

 

修改主機名

vi /etc/sysconfig/network

HOSTNAME=master

 

虛擬機01

(vi基本操做 編輯a   保存並退出esc->:wq)

vi /etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO=static #需改成靜態,不然下面的IPADDR將沒用,系統自動分配IP
ONBOOT=yes #修改;啓動時配置網卡
IPADDR=192.168.137.2
NETMASK=255.255.255.0
GATEWAY=192.168.137.1

 

配置DNS

vi /etc/resolv.conf
nameserver 192.168.137.1

 

重啓網卡

service network restart

 

error:device eth0 does not seem to be present, delaying initialization

先重啓,或者http://blog.sina.com.cn/s/blog_77126fa501018s3d.html

檢驗

虛擬機ifconfig查看ip

從主機ping下虛擬機

相關文章
相關標籤/搜索