gpt4 book ai didi

hadoop - Spark 1.2.1 编译汇编工程失败

转载 作者:可可西里 更新时间:2023-11-01 15:33:50 28 4
gpt4 key购买 nike

刚刚下载了Spark 1.2.1,在汇编工程中编译失败,报如下错误:

The requested profile "hadoop-2.6" could not be activated because it does not exist.
[ERROR] Failed to execute goal on project spark-assembly_2.10: Could not resolve dependencies for project org.apache.spark:spark-assembly_2.10:pom:1.2.1: Failure to find org.apache.spark:spark-hive-thriftserver_2.11:jar:1.2.1

这里是环境:

  1. Hadoop 2.6.0 -- 通过 brew 安装
  2. Hive 0.14.0 -- 通过 brew 安装
  3. Spark 1.2.1 作为 tgz 下载,因为 Brew 提示 beeline 是一个常见的二进制文件
  4. Scala 2.11 -- 通过 brew 安装
  5. sbt 0.13.7 -- 通过 brew 安装

我正在使用以下参数编译 spark 分布:mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.6.0 -Phive -Phive-thriftserver -Dscala-2.11 -DskipTests 清理包

Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM .......................... SUCCESS [ 3.525 s]
[INFO] Spark Project Core ................................ SUCCESS [02:56 min]
[INFO] Spark Project Bagel ............................... SUCCESS [ 17.102 s]
[INFO] Spark Project GraphX .............................. SUCCESS [ 45.246 s]
[INFO] Spark Project ML Library .......................... SUCCESS [01:22 min]
[INFO] Spark Project Tools ............................... SUCCESS [ 11.457 s]
[INFO] Spark Project Networking .......................... SUCCESS [ 6.121 s]
[INFO] Spark Project Shuffle Streaming Service ........... SUCCESS [ 5.642 s]
[INFO] Spark Project Streaming ........................... SUCCESS [01:19 min]
[INFO] Spark Project Catalyst ............................ SUCCESS [01:27 min]
[INFO] Spark Project SQL ................................. SUCCESS [01:19 min]
[INFO] Spark Project Hive ................................ SUCCESS [01:20 min]
[INFO] Spark Project Assembly ............................ FAILURE [ 0.396 s]
[INFO] Spark Project External Twitter .................... SKIPPED
[INFO] Spark Project External Flume ...................... SKIPPED
[INFO] Spark Project External Flume Sink ................. SKIPPED
[INFO] Spark Project External MQTT ....................... SKIPPED
[INFO] Spark Project External ZeroMQ ..................... SKIPPED
[INFO] Spark Project Examples ............................ SKIPPED
[INFO] Spark Project REPL ................................ SKIPPED
[INFO] Spark Project YARN Parent POM ..................... SKIPPED
[INFO] Spark Project YARN Stable API ..................... SKIPPED
[INFO] Spark Project YARN Shuffle Service ................ SKIPPED
[INFO] Spark Project Hive Thrift Server .................. SKIPPED

我错过了什么吗?我不想使用 brew 来安装 Apache-Spark,因为我将不得不取消链接配置单元,但我也想使用它。

谢谢!

最佳答案

尝试使用 hadoop-2.4 配置文件,但保留其他 Hadoop 版本为 2.6.0:

mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 -Phive -Phive-thriftserver -Dscala-2.11 -DskipTests clean package

来源:https://mail-archives.apache.org/mod_mbox/spark-user/201412.mbox/%3CCAMAsSdLVO73-YRa8-k_SXN5kkDKML-nKpPhgnQ3TgxUVnCp=bg@mail.gmail.com%3E

关于hadoop - Spark 1.2.1 编译汇编工程失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28620153/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com