> 文档中心 > yarn服务windows 无法查看

yarn服务windows 无法查看

同学们在搭建完hadoop集群,想在Windows窗口查看一下他的yarn服务,192.168.74.146:8088。会发现根本进不去,域名无法登录。

在查找了一系列文章之后,我发现了一个东西,在Linux上搭建集群的时候免密码登录时配置的hosts文件在windows下也有,我就把hosts文件打开,他的位置C:\Windows\System32\drivers\etc中,你们可以打开它,但是如果你要编辑它你必须要用管理员身份,毕竟这是一个系统文件,就和Linux系统中的sudo超级权限差不多意思。

管理员身份打开方式如下:

打开之后你会看到以下内容

 出现了一个和Linux差不多的终端,他的命令和Linux差不多,因为已经在这个文件夹下了,所以选择编辑这个host文件。

notepad ./hosts

 

# Copyright (c) 1993-1999 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#此文件包含IP地址主机名的映射。每个条目应单独保存在一行中。IP地址应该是将被放置在第一列中,后跟相应的主机名。IP地址和主机名之间至少应有一个分隔符空间。

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

大概的意思就是:这个文件就是拿来保存ip地址与主机名的映射的。

之所以你的yarn服务无法在你的windows上查看,就是映射没有填到这里面。