window以主机名访问hadoop主机需要修改hosts文件

需要编辑hosts文件:

该文件位置在:‪C:\Windows\System32\drivers\etc\hosts

该文件内容:


#此文件包含IP地址到主机名的映射。每条目应保留在单独的行中。IP地址应该放在第一列,后跟相应的主机名。
#IP地址和主机名至少要用一个分隔空间。

#此外,备注可以单列一行或在以“#”符号表示的机器名称之后。

# 例如:

102.54.94.97     rhino.acme.com    #源服务器
38.25.63.10     x.acme.com    #x客户端主机

#本地主机名称解析是在DNS本身内处理的。

127.0.0.1    localhost
:: 1    localhost

====================以下是原文==============
 

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost

 

发布了49 篇原创文章 · 获赞 13 · 访问量 10万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览