当前位置: 首页 > 知识库问答 >
问题:

web应用程序中的apache atlas安装错误

壤驷心思
2023-03-14
  1. [Run command] export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install
    [Error message] Running org.apache.atlas.web.adapters.TestEntityREST
    Tests run: 11, Failures: 1, Errors: 0, Skipped: 8, Time elapsed:
    13.995 sec <<< FAILURE! - in org.apache.atlas.web.adapters.TestEntityREST enter code here 
    cleanup(org.apache.atlas.web.adapters.TestEntityREST)  Time elapsed:
    0.217 sec  <<< FAILURE!
        java.lang.NullPointerException: null    at org.apache.atlas.RequestContext.clear(RequestContext.java:97)    at
    org.apache.atlas.web.adapters.TestEntityREST.cleanup(TestEntityREST.java:80)
    ...
    
    [INFO]
    ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO]  [INFO] Apache Atlas Server Build
    Tools .................... SUCCESS [  1.489 s] [INFO] apache-atlas
    ....................................... SUCCESS [  8.805 s] [INFO]
    Apache Atlas Integration ........................... SUCCESS [
    42.642 s] [INFO] Apache Atlas Common ................................ SUCCESS [ 14.276 s] [INFO] Apache
    Atlas Typesystem ............................ SUCCESS [01:15 min]
    [INFO] Apache Atlas Client ................................ SUCCESS
    [ 17.168 s] [INFO] Apache Atlas Server API
    ............................ SUCCESS [  8.440 s] [INFO] Apache Atlas
    Notification .......................... SUCCESS [ 38.640 s] [INFO]
    Apache Atlas Graph Database Projects ............... SUCCESS [ 
    0.553 s] [INFO] Apache Atlas Graph Database API .................... SUCCESS [  5.432 s] [INFO] Graph Database Common Code
    ......................... SUCCESS [  5.636 s] [INFO] Shaded version
    of Apache hbase client .............. SUCCESS [ 10.728 s] [INFO]
    Apache Atlas Titan 0.5.4 Graph DB Impl ............. SUCCESS [01:58
    min] [INFO] Apache Atlas Graph Database Implementation Dependencies
    SUCCESS [  0.846 s] [INFO] Shaded version of Apache hbase server
    .............. SUCCESS [ 23.850 s] [INFO] Apache Atlas Repository
    ............................ SUCCESS [13:25 min] [INFO] Apache Atlas
    Authorization ......................... SUCCESS [ 13.707 s] [INFO]
    Apache Atlas Business Catalog ...................... SUCCESS [
    31.334 s] [INFO] Apache Atlas UI .................................... SUCCESS [01:11 min] [INFO]
    Apache Atlas Web Application ....................... FAILURE [04:29
    min] [INFO] Apache Atlas Documentation .........................
    SKIPPED [INFO] Apache Atlas FileSystem Model ......................
    SKIPPED [INFO] Apache Atlas Plugin Classloader ....................
    SKIPPED [INFO] Apache Atlas Hive Bridge Shim ......................
    SKIPPED [INFO] Apache Atlas Hive Bridge ...........................
    SKIPPED [INFO] Apache Atlas Falcon Bridge Shim ....................
    SKIPPED [INFO] Apache Atlas Falcon Bridge .........................
    SKIPPED [INFO] Apache Atlas Sqoop Bridge Shim .....................
    SKIPPED [INFO] Apache Atlas Sqoop Bridge ..........................
    SKIPPED [INFO] Apache Atlas Storm Bridge Shim .....................
    SKIPPED [INFO] Apache Atlas Storm Bridge ..........................
    SKIPPED [INFO] Apache Atlas Distribution ..........................
    SKIPPED [INFO]
    ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
    ------------------------------------------------------------------------ [INFO] Total time: 26:06 min [INFO] Finished at:
    2017-02-09T01:20:53+09:00 [INFO] Final Memory: 165M/1437M [INFO]
    ------------------------------------------------------------------------ [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test
    (default-test) on project atlas-webapp: There are test failures.
    [ERROR]  [ERROR] Please refer to
    /Users/dongkillee/dev/bin/atlas/webapp/target/surefire-reports for
    the individual test results. [ERROR] -> [Help 1] [ERROR]  [ERROR] To
    see the full stack trace of the errors, re-run Maven with the -e
    switch. [ERROR] Re-run Maven using the -X switch to enable full
    debug logging. [ERROR]  [ERROR] For more information about the
    errors and possible solutions, please read the following articles:
    [ERROR] [Help 1]     
        ```
    

    http://cwiki . Apache . org/confluence/display/MAVEN/mojo failure exception[ERROR][ERROR]更正问题后,可以使用命令[ERROR] mvn -rf :atlas-webapp恢复构建

共有2个答案

解博明
2023-03-14

我在这里解释了完整的解决方案。简而言之,因为它在pom中的maven插件中使用了一些测试用例。xml文件,在从头开始构建Apache Atlas时,我们需要添加-DskipTestsargument。

执行以下项目以运行项目而不会出现任何错误:

    < li> git克隆https://github.com/apache/atlas < li>mvn全新安装-DskipTests < li>mvn干净包-Pdist -DskipTests
龚远
2023-03-14

这是测试用例错误。使用以下命令。它将成功创建您的构建

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install -DskipTests
 类似资料:
  • 最近我安装了AndroidSDK 5.1,之后我发现了一些以前从未见过的错误,比如App is not installed error。如果用户单击设备中的应用程序图标,则会出现此错误。你能建议如何解决这个问题吗这是我的清单代码 这里是控制台中的错误报告 我已经在stackoverflow上检查了这个问题,并尝试了解决方案,但这里没有幸运的参考链接,我尝试了link1 link2

  • 攻击者无时无刻不在准备对你的 Web 应用程序进行攻击,因此提高你的 Web 应用程序的安全性是非常有必要的。幸运的是,来自The Open Web Application Security Project (OWASP) 的有心人已经整理了一份包含了已知安全问题和防御方式的全面的清单。这份清单对于具有安全意识的开发者来说是必读的。由 Padraic Brady 整理的 Survive The D

  • 我不知道我应该从哪里开始,因为我必须通过安装4j安装程序在JBoss上部署一个网络应用程序。 我已经创建了动态Web应用程序,我想在JBoss上部署这个应用程序,但是部署一个war文件并在客户端机器上配置JBoss不是一个好主意,因此我想创建一个安装程序文件(. exe)文件,它将处理以下事情: > 在客户机上安装JBoss服务器 在JBoss服务器上部署我的应用程序 所以我只需要把安装程序文件给

  • 问题内容: 我不是在寻找java-web- start,而是在寻找胖客户端应用程序安装工具包。我有一个独立的应用程序,其中包含几个文件(jar文件,数据文件等),并且需要执行一些非常标准的安装任务,例如向用户询问目标目录,让他们找到系统的某些部分- 选择一些按计算机或按用户配置的选项,并可能尝试检测它们的某些计算机设置。 我正在寻找类似于MSI或其他向导驱动的安装应用程序的东西。什么是Java的良

  • 我在Udemy上学习“现代React with Redux课程”,讲师要求先安装NodeJs,然后安装“npm安装-g创建React应用程序”,当我尝试运行此命令时,我遇到一个错误:- 然后我讨论了有关stackoverflow的一些问题,其中有人建议运行以下命令:- 我得到了: 然后我运行 再次命令,但仍然得到相同的错误,任何解决方案/建议?