星火SQL 1.5构建失败 [英] Spark SQL 1.5 build failure

查看:633
本文介绍了星火SQL 1.5构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装的星火1.5 在Ubuntu 14.04 LTS。
当运行构建命令建立/ MVN -Dscala 2.11 -DskipTests清洁套装我得到以下项目星火SQL过程中建立自己的错误:

  [错误]缺失或无效的依赖检测,同时加载类文件WebUI.class。
        [错误]无法访问月食一词在包装组织,
        [错误],因为它(或它的依赖)失踪。请检查您的构建定义
        [错误]丢失或冲突的依赖关系。 (用`-Ylog-classpath`看到有问题的类路径重新运行。)
        [错误]一个完整的重建可能会帮助,如果'WebUI.class是对组织的不兼容的版本编译的。
        [错误]缺失或无效的依赖检测,同时加载类文件WebUI.class。
        [错误]无法访问期限码头价值org.eclipse,
        [错误],因为它(或它的依赖)失踪。请检查您的构建定义
        [错误]丢失或冲突的依赖关系。 (用`-Ylog-classpath`看到有问题的类路径重新运行。)
        [错误]一个完整的重建可能会帮助,如果'WebUI.class反对org.eclipse不兼容的版本编译的。
        [提醒]研究发现22警告
        找到[错误]两个错误
        [错误]编译失败在2015年9月18日下午6时09分38秒[17.330s]
        [INFO] ----------------------------------------------- -------------------------
        [INFO]反应堆摘要:
        [信息]
        [INFO]星火项目父POM ...........................成功[6.723秒]
        [INFO]星火项目核心.................................成功[3点07分]
    ...
        [INFO]星火项目催化剂.............................成功[58.166秒]
        [INFO]星火项目SQL ..................................失败[19.912秒]
        [INFO]星火项目蜂巢................................. SKIPPED
        [INFO]星火项目不安全............................... SKIPPED
...
        [INFO] ----------------------------------------------- -------------------------
        [INFO]构建失败
        [INFO] ----------------------------------------------- -------------------------

下面以下文件我的ENV变量的.bashrc

 出口JAVA_HOME = / usr / lib目录/ JVM / JAVA-1.7.0-的OpenJDK,AMD64出口SCALA_HOME =的/ usr / local / src目录/斯卡拉/斯卡拉-2.11.7
出口PATH = $ SCALA_HOME /斌:$ PATH
出口PATH = /家庭/ Ubuntu的/ Apache的行家-3.3.3 /斌:$ PATH出口SPARK_HOME = /家庭/ Ubuntu的/火花1.5.0
出口MAVEN_OPTS = - Xmx2g -XX:MaxPermSize参数= 512M -XX:保留codeCacheSize =512米

更新:试图用-Ylog类路径运行,但没有工作:

 无法解析命令行选项:无法识别的选项:-Ylog类路径


解决方案

请参阅安杰洛吉诺维斯的评论,不包括-Dscala-2.11 build命令。

I've installed Spark 1.5 on Ubuntu 14.04 LTS. When running build with command build/mvn -Dscala-2.11 -DskipTests clean package I get the following build error during project Spark SQL:

    [error] missing or invalid dependency detected while loading class file 'WebUI.class'.
        [error] Could not access term eclipse in package org,
        [error] because it (or its dependencies) are missing. Check your build definition for
        [error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
        [error] A full rebuild may help if 'WebUI.class' was compiled against an incompatible version of org.
        [error] missing or invalid dependency detected while loading class file 'WebUI.class'.
        [error] Could not access term jetty in value org.eclipse,
        [error] because it (or its dependencies) are missing. Check your build definition for
        [error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
        [error] A full rebuild may help if 'WebUI.class' was compiled against an incompatible version of org.eclipse.
        [warn] 22 warnings found
        [error] two errors found
        [error] Compile failed at Sep 18, 2015 6:09:38 PM [17.330s]
        [INFO] ------------------------------------------------------------------------
        [INFO] Reactor Summary:
        [INFO] 
        [INFO] Spark Project Parent POM ........................... SUCCESS [  6.723 s]
        [INFO] Spark Project Core ................................. SUCCESS [03:07 min]
    ...
        [INFO] Spark Project Catalyst ............................. SUCCESS [ 58.166 s]
        [INFO] Spark Project SQL .................................. FAILURE [ 19.912 s]
        [INFO] Spark Project Hive ................................. SKIPPED
        [INFO] Spark Project Unsafe ............................... SKIPPED
...
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------

Here below my env variables in file .bashrc

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64

export SCALA_HOME=/usr/local/src/scala/scala-2.11.7
export PATH=$SCALA_HOME/bin:$PATH
export PATH=/home/ubuntu/apache-maven-3.3.3/bin:$PATH

export SPARK_HOME=/home/ubuntu/spark-1.5.0
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m"

Update: tried to run with -Ylog-classpath, but didn't work:

Unable to parse command line options: Unrecognized option: -Ylog-classpath

解决方案

Refer to Angelo Genovese's comment, do not include -Dscala-2.11 in build command.

这篇关于星火SQL 1.5构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆