在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之路了。

相关文章:

  • 2021-09-15
  • 2021-10-05
  • 2021-05-12
  • 2021-09-07
  • 2022-12-23
  • 2021-12-05
  • 2021-05-26
  • 2022-12-23
猜你喜欢
  • 2021-08-03
  • 2021-06-26
  • 2021-12-01
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案