我正在尝试配置使用cent os 6.x虚拟机安装的hadoop群集,我已经先配置了单节点hadoop群集,然后再从中复制并形成群集,但是对我的虚拟hadoop群集的静态ip地址的配置感到困惑,我的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.
1条答案
按热度按时间2exbekwf1#
桥梁网络会有帮助。在virtualbox中选择机器,设置>网络
下面是您正在编辑的文件的示例。
/etc/sysconfig/network scripts/ifcfg-eth0
还有其他要求。附加的链接可能会有所帮助
http://blog.cloudera.com/blog/2014/01/how-to-create-a-simple-hadoop-cluster-with-virtualbox/
对于internet访问,下面列出的文件需要修改。
另外,您为静态ip/etc/sysconfig/network scripts/ifcfg-eth0修改的文件需要添加以下内容