scalaIDE 与spark2.0 源代码关联
一 scalaIDE maven方式获取spark2.0 源代码
不安装插件,scalaide的maven新建的是java工程,没法使用scala代码。
因此,必须安装scala ide 的maven插件。
步骤:
http://scala-ide.org/docs/tutorials/m2eclipse/
1、安装插件
Using Scala IDE for Eclipse on a Maven Scala project is fairly straightforward.. when all the pieces are in the right place. In this tutorial I will show how to use the Scala IDE on an existing maven project, and how to start with a fresh project.
2、If you don’t have the vanilla Maven Integration for Eclipse, make sure you have enabledCheck all update sites to find required software. If you already have it, you can leave this box unchecked.
SCALAIDE通过help->install new software 安装。输入网址:
http://alchim31.free.fr/m2e-scala/update-site/
下载成功,重启scalaIDE
这个方式行不通,
http://scala-ide.org/docs/tutorials/m2eclipse/
Select New -> Project -> Other and then select Maven Project. On the next window, search forscala-archetype
. Make sure you select the one in groupnet.alchim31.maven
, and clickNext
.
scala的mavne类型出不来了。
3、编辑
pom.xml
4、重来
http://blog.csdn.net/shoubuliaolebu/article/details/44807567#
http://mvnrepository.com/artifact/org.scala-tools/maven-scala-plugin/2.15.2下载
maven-scala-plugin-2.15.2.jar
复制到
G:\IMFBigDataSpark2016\eclipse\plugins 但
使用maven没有搞成功,spark 2.0相关的一些maven下载资源没有搜到相应的sql等 的dependency。
方式二:
还是直接从spark官网下载源代码, spark-2.0.0.tgz,然后解压缩为目录,scalaIDE不支持tgz的文件关联,只支持jar,zip。
那么就 使用文件目录关联就可以了,关联spark2.0的目录就可以了,很简单。