简体   繁体   English

错误构建和安装Apache Atlas

[英]Error Building & Installing Apache Atlas

I was trying to setup apache atlas using this link . 我正在尝试使用此链接设置Apache地图集。

While running this: 运行此命令时:

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install

I'm getting the following build failure: 我遇到以下构建失败:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:00 min
[INFO] Finished at: 2017-12-18T15:49:16+05:30
[INFO] Final Memory: 80M/268M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project atlas-hbase-client-shaded:
        Could not resolve dependencies for project org.apache.atlas:atlas-hbase-client-shaded:jar:1.0.0-SNAPSHOT:
        Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/../lib/tools.jar 

Please let me know how to fix this. 请让我知道如何解决此问题。

echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home

Please let me know if anything else is required. 如果需要其他任何条件,请告诉我。

Found this below on http://hadoopinrealworld.com/missing-artifact-jdk-tools-jar/ It is very easy to solve the problem. http://hadoopinrealworld.com/missing-artifact-jdk-tools-jar/上找到以下内容很容易解决。 Simply add the below dependency to your pom.xml. 只需将以下依赖项添加到pom.xml中。

<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7.0_05</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>

This issue is mostly because of the codeApache Atlas should be built by JDK instead of the JRE. 这个问题主要是因为代码Apache Atlas应该由JDK而不是JRE构建。 I got the same error, so I removed the JRE and installed the one with JDK and I went past that error. 我遇到了同样的错误,因此我删除了JRE并将其与JDK一起安装,我越过了该错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM