我正在尝试配置使用Cent OS 6.x虚拟机安装的Hadoop集群,我先配置单节点Hadoop集群,然后再复制并形成集群,但对我的虚拟Hadoop的静态IP地址配置感到困惑cluster,我的ifcfg-eth0目前如下所示,
DEVICE=eth0
TYPE=Ethernetle
UUID=892c57f5-17db-486d-b1b9-97efa8799bf0
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
HWADDR=00:0C:29:5C:04:D0
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
can anyone help me to configure static address for my virtual Hadoop cluster, and also i am not able to ping any other host name other than localhost but can able to ping host address,anyone please help me to resolve this ping and static address issues.
答案 0 :(得分:1)
桥接网络将有所帮助。在virtualbox select machine中,设置> network
以下是您正在编辑的文件的示例。
的/ etc / SYSCONFIG /网络的脚本/的ifcfg-eth0的
DEVICE=eth0
ONBOOT=yes
PROTO=static
IPADDR=10.0.1.200
NETMASK=255.255.255.0
还有其他要求。附加链接可能有帮助
http://blog.cloudera.com/blog/2014/01/how-to-create-a-simple-hadoop-cluster-with-virtualbox/
对于互联网访问,下面列出的文件需要修改。
/etc/resolv.conf
#Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
您为静态IP / etc / sysconfig / network-scripts / ifcfg-eth0修改的文件也需要添加以下内容
DNS1=8.8.8.8
DNS2=8.8.4.4
ONBOOT=yes