在centos上搭建spark開發環境。使用IntelliJ IDEA做scala開發,需要配置SBT。一直卡在從maven上下載jar包的過程中,還幾次都下失敗了。試過vpn也沒有用。
還好偶然看到阿里雲maven倉庫,才終於下成功了。
修改文件位置:
~/.sbt/repositories 沒有這個repositories這個文件就新建一個
修改內容如下:
[repositories]
#local
public: http://maven.aliyun.com/nexus/content/groups/public/#這個maven
typesafe:http://dl.bintray.com/typesafe/ivy-releases/ , [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly#這個ivy
ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]#這個ivy
sonatype-oss-releases
sonatype-oss-snapshots
飛一般的速度就下載ok。感激涕零,終於可以繼續spark之路了。
