IJ IDEA 下載鏈接: https://www.jetbrains.com/idea/download/#section=mac
安裝完IDEA後,進入偏好設置,在搜索框搜索scala,而後安裝scala 插件。
html
Mac 我安裝了Homebrew,因此使用的如下代碼安裝sbt:git
$ brew install sbt@1
其餘安裝方法請參閱官方文檔github
$ git clone git@github.com:lestatzhang/spark.git
$ cd spark; $ git remote -v; origin git@github.com:lestatzhang/spark.git (fetch) origin git@github.com:lestatzhang/spark.git (push) $ git remote add upstream https://github.com/apache/spark.git; $ git remote -v; origin git@github.com:lestatzhang/spark.git (fetch) origin git@github.com:lestatzhang/spark.git (push) upstream https://github.com/apache/spark.git (fetch) upstream https://github.com/apache/spark.git (push)
$ git fetch upstream
$ git pull upsteam master From https://github.com/apache/spark * branch master -> FETCH_HEAD Already up-to-date.
$ git checkout -b dev
$ git checkout dev
$ build/sbt assembly Attempting to fetch sbt ... [info] Done packaging. [success] Total time: 1872 s, completed Feb 17, 2019 1:53:19 PM $ build/sbt package
$ bin/spark-shell