https://www.cnblogs.com/HusterX/p/14125543.html

环境声明:

1. Hadoop 2.7.0

2 Java 1.8.0

3. window10

4. Vmware workstation pro 16

5. centos7 

window上hadoop的安装:

1. 将hadoop.tar.gz文件解压

2. 将  "hadoop安装路径"\bin 添加到PATH路径中

3. 将hadoop.dll文件放到 C:\Windows\System32 目录下,将winutils.exe文件到 "hadoop安装路径"\bin  目录下 

    PS: 要下载对应版本的 hadoop.dll 和 winutils.exe (如果没有,尽量用高于自己版本的文件)具体文件在github上找。

 

更改window系统上的hosts文件

路径:C:\Windows\System32\drivers\etc\hosts

 1 # Copyright (c) 1993-2009 Microsoft Corp.
 2 #
 3 # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
 4 #
 5 # This file contains the mappings of IP addresses to host names. Each
 6 # entry should be kept on an individual line. The IP address should
 7 # be placed in the first column followed by the corresponding host name.
 8 # The IP address and the host name should be separated by at least one
 9 # space.
10 #
11 # Additionally, comments (such as these) may be inserted on individual
12 # lines or following the machine name denoted by a '#' symbol.
13 #
14 # For example:
15 #
16 #      102.54.94.97     rhino.acme.com          # source server
17 #       38.25.63.10     x.acme.com              # x client host
18 
19 # localhost name resolution is handled within DNS itself.
20 #    127.0.0.1       localhost
21 #    ::1             localhost
22 127.0.0.1       activate.navicat.com
23 # 下边三个是虚拟机中的IP地址和hostname
24 192.168.47.131  master
25 192.168.47.132  slave1
26 192.168.47.130  slave2
hosts

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-11-03
  • 2021-12-17
猜你喜欢
  • 2021-08-13
  • 2021-10-09
  • 2021-08-20
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-07-07
相关资源
相似解决方案