配置hadoop环境时遇到Missing artifact jdk.tools:jdk.tools:jar:1.8

 

如果遇到“Missing artifact jdk.tools:jdk.tools:jar:1.8”

第一步:下载JDK1.8

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

第二部:在maven中加入以下信息

  <dependencies>

<dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-common</artifactId>
    <version>3.2.0</version>
</dependency>

 

    <dependency>
            <groupId>jdk.tools</groupId>
            <artifactId>jdk.tools</artifactId>
            <version>1.8</version>
            <scope>system</scope>
            <systemPath>C:/Program Files/Java/jdk1.8.0_211/lib/tools.jar</systemPath>
    </dependency>

 

  </dependencies>

 

 

posted @ 2019-06-09 21:55  bH1pJ  阅读(49)  评论(0编辑  收藏  举报