Spark2學習1之基本環境搭建(win)問題
更多程式碼請見:https://github.com/xubo245/SparkLearning
版本:Spark-2.0.0
1解釋
從【2】中下載release版,idea開啟mvn package,報錯
遇到的問題:
main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [ 6.694 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 8.450 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 15.953 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 48.225 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 14.020 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [ 19.038 s]
[INFO] Spark Project Launcher ............................. SUCCESS [ 13.924 s]
[INFO] Spark Project Core ................................. FAILURE [ 4.655 s]
[INFO] Spark Project GraphX ............................... SKIPPED
[INFO] Spark Project Streaming ............................ SKIPPED
[INFO] Spark Project Catalyst ............................. SKIPPED
[INFO] Spark Project SQL .................................. SKIPPED
[INFO] Spark Project ML Local Library ..................... SKIPPED
[INFO] Spark Project ML Library ........................... SKIPPED
[INFO] Spark Project Tools ................................ SKIPPED
[INFO] Spark Project Hive ................................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External Flume Assembly .............. SKIPPED
[INFO] Spark Integration for Kafka 0.8 .................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project External Kafka Assembly .............. SKIPPED
[INFO] Spark Integration for Kafka 0.10 ................... SKIPPED
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:11 min
[INFO] Finished at: 2016-07-30T14:21:00+08:00
[INFO] Final Memory: 53M/450M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project spark-core_2.11: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "bash" (in directory "C:\soft\spark\spark-2.0.0\core"): CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
[ERROR] around Ant part ...<exec executable="bash">... @ 4:27 in C:\soft\spark\spark-2.0.0\core\target\antrun\build-main.xml
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :spark-core_2.11
2.程式碼:
解決辦法:
將Git下面的bin路徑加入系統Path中:C:\Program Files (x86)\Git\bin
3.結果:
驗證,可以通過cmd檢視git 和bash
參考
【1】http://spark.apache.org/docs/2.0.0/
【2】https://github.com/apache/spark
【3】https://github.com/xubo245/SparkLearning
相關文章
- React學習筆記1:環境搭建React筆記
- 學習centos之快速搭建LNMP環境CentOSLNMP
- Cordova4.0 系列 -- 基本環境搭建(1)
- (七)Flutter學習之開發環境搭建Flutter開發環境
- kafka學習筆記1:測試環境搭建Kafka筆記
- webpack學習筆記:搭建基本的前端開發環境Web筆記前端開發環境
- 區塊鏈學習之Fabric的環境搭建區塊鏈
- laravel學習筆記之開發環境搭建Laravel筆記開發環境
- 學習Spring原始碼篇之環境搭建Spring原始碼
- Windows搭建Superset環境學習Windows
- Linux學習環境搭建Linux
- Scala開發之1:環境搭建
- docker 學習筆記之實戰 lnmp 環境搭建系列 (2) ------ 手動搭建 lnmp 環境Docker筆記LNMP
- tensorflow學習之Anaconda開發環境搭建開發環境
- Maven基礎:Maven環境搭建及基本使用(1)Maven
- (一)Linux環境的學習環境的搭建Linux
- <react學習筆記(1)>認識react和環境搭建React筆記
- 學習筆記:MQTT環境搭建筆記MQQT
- php 學習筆記之搭建開發環境(mac版)PHP筆記開發環境Mac
- 大資料學習之--hadoop2.7.3環境搭建大資料Hadoop
- 「MoreThanJava」Day 1:環境搭建和程式基本結構元素Java
- 一、Windows 環境搭建問題彙總Windows
- **開發環境一些基本問題開發環境
- 【機器學習】深度學習開發環境搭建機器學習深度學習開發環境
- Flutter學習指南:開發環境搭建Flutter開發環境
- Android環境搭建學習筆記Android筆記
- Kubernetes學習---環境搭建篇
- OpenGL 學習 01 Mac 搭建 OpenGL 環境Mac
- Ubuntu 18.04 深度學習環境搭建Ubuntu深度學習
- 學習ASM技術(一)--環境搭建ASM
- OROCOS之BFL(1)—— Linux環境搭建篇Linux
- 【轉】NO.1、 appium之ios環境搭建APPiOS
- webpack(1)安裝環境與解決環境問題Web
- rust學習一、入門之搭建簡單開發環境Rust開發環境
- Rust 之環境搭建Rust
- 以太坊-Win環境下remix環境搭建REM
- Fabric 環境搭建遇到問題及解決
- linux伺服器環境搭建問題Linux伺服器