【问题标题】:hue installation error on AWS EC2AWS EC2上的hue安装错误
【发布时间】:2014-03-10 01:50:07
【问题描述】:

您好,我正在尝试在 AWS EC2 实例上安装 Hue。

以下链接。

https://github.com/cloudera/hue

在执行步骤 make apps 时,我遇到了错误。

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.6.0-30 is not in the allowed range [1.7.0,1.7.1000].
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.717s
[INFO] Finished at: Sun Mar 09 13:18:59 EDT 2014
[INFO] Final Memory: 5M/25M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (default) on project hue-parent: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException

我有java版本

 java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

可以提供其他信息。谢谢你的帮助。

【问题讨论】:

    标签: amazon-web-services amazon-ec2 rhel hue


    【解决方案1】:

    您还可以通过编辑删除 JDK 7 检查:

    vim maven/pom.xml

    并将“7”替换为“6”:

    <javaVersion>1.7</javaVersion>
    <sourceJavaVersion>1.7</sourceJavaVersion>
    <targetJavaVersion>1.7</targetJavaVersion>
    

    (显然,如果您打算使用 Java 7,最好确保默认 Java 7)

    【讨论】:

      【解决方案2】:

      您的系统中似乎还有另一个 Java 版本。根据您的安装说明:

      Detected JDK Version: 1.6.0-30
      

      确保您的 JAVA_HOME 变量指向您的 Java 1.7 安装目录。

      【讨论】:

        猜你喜欢
        • 2014-05-10
        • 2015-11-17
        • 2020-11-29
        • 2016-04-27
        • 2012-01-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多