1、IDEA的下载页面http://www.jetbrains.com/idea/
2、下载到D:\IMFSpark_SoftWare_ALL\Big_Data_Software、ideaIC-
15.0.2.exe
3、复制到G:\IMFBigDataSpark2016\Bigdata_Software 点击ideaIC-
15.0.2.exe安装
安装路径C:\Program Files\JetBrains\IntelliJ IDEA Community
Edition 15.0.2
4、java 1.8
scala 2.10.4
5、next安装 选择commuity,
6、set ui theme风格 darcula
setting-appearance behavior |appearance
7、插件采用默认
8、安装scala 左下角安装
9、完成以后,点击start using idea,进入启动页面
10、点击creat new project
11 选择 scala-scala 目录G:\IMFBigDataSpark2016\IMFIdeaWorkspace
12 project SDK 选择new sdk 选择java 1.8的路径
C:\Program Files\Java\jdk1.8.0_65
13 scala sdk -create 选 2.10.4,FINISH 完成
14 进入IDEA
15 点击file project stucture 添加依赖spark的jar依赖
libraries -点击 + jdk 加入spark-1.6.0-bin-hadoop2.6.tgz
16 G:\IMFBigDataSpark2016\spark-1.6.0-bin-hadoop2.6
spark-1.6.0-bin-hadoop2.6.tgz解压以后有个lib
17、导入spark jar包
jdk
spark 1.6.0
scala 2.10.4
18、创建spark 工程
new src package com.dt.spark
new class WordCount
def main (args:Array[string]){}
19 新建HADOOP_HOME 略
20 复制代码,alt+enter导入包
21 运行报错了
Error:scalac: Multiple 'scala-library*.jar' files (scala-
library.jar, scala-library.jar) in Scala compiler classpath in
Scala SDK scala-sdk-2.10.4