Could not find artifact jdk.tools:jdk.tools:jar:1.8 at specified path

Could not find artifact jdk.tools:jdk.tools:jar:1.8 at specified path

  • This error occurs in the hive UDF jar package packing process
  • Conflict file hadoop-common-dependent hive-exec dependence have brought the tools, and native jdk belt: Reason

In dependence on the list excluded jdk.tools

<!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common -->
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-common</artifactId>
            <version>2.7.7</version>
            <exclusions>
                <exclusion>
                    <artifactId>jdk.tools</artifactId>
                    <groupId>jdk.tools</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.apache.hive/hive-exec -->
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-exec</artifactId>
            <version>2.3.3</version>
            <exclusions>
                <exclusion>
                    <artifactId>jdk.tools</artifactId>
                    <groupId>jdk.tools</groupId>
                </exclusion>
            </exclusions>
        </dependency>

Guess you like

Origin blog.csdn.net/qq_38190111/article/details/94588449