刚下载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
这里是环境:
- Hadoop 2.6.0——通过 brew 安装
- Hive 0.14.0 -- 通过 brew 安装
- Spark 1.2.1 作为 tgz 下载,因为 Brew 抱怨 Beeline 是一个常见的二进制文件
- Scala 2.11——通过 brew 安装
- sbt 0.13.7 -- 通过 brew 安装
我正在使用以下参数编译火花分布: mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.6.0 -Phive -Phive-thriftserver -Dscala-2.11 -DskipTests clean package
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,因为我必须取消链接 hive 并且我也想使用它。
谢谢!