ubuntu 大数据环境搭建
一 java 安装
1.在oracle 官网,下载版本1.8.tar.gz
2.解压文件后,修改名称
tar -xzvf jdk
mv jdk /usr/java
3.在软件安装的用户所在profile文件配置相应的环境变量
vi /home/jerry/.profile
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
exportJAVA_HOME=/usr/java
exportJRE_HOME=$JAVA_HOME/jre
exportCLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
exportPATH=$PATH:$JAVA_HOME/bin:$CLASSPATH:$JRE_HOME
4.生效配置
. .profile
二 scala搭建
1.下载指定版本的scala插件
scala-2.11.8.deb
2.安装软件,直接点击安装
scala-2.11.8.deb
3.查看软件安装释放文件位置
dpkg-L scala
会有如下显示,部分粘贴
/usr/share/doc/scala/api/scala-compiler/index/index-f.html
/usr/share/doc/scala/api/scala-compiler/index/index-k.html
/usr/share/doc/scala/api/scala-compiler/index/index-d.html
/usr/share/doc/scala/api/scala-compiler/index/index-r.html
/usr/share/doc/scala/api/scala-compiler/index/index-s.html
/usr/share/doc/scala/api/scala-compiler/index/index-_.html
/usr/share/doc/scala/api/scala-compiler/index/index-t.html
/usr/share/doc/scala/api/scala-compiler/index/index-u.html
/usr/share/doc/scala/api/scala-compiler/index/index-z.html
/usr/share/doc/scala/api/scala-compiler/index/index-j.html
/usr/share/doc/scala/api/scala-compiler/index/index-l.html
/usr/share/doc/scala/api/scala-compiler/index/index-y.html
/usr/share/doc/scala/api/scala-compiler/index/index-x.html
/usr/share/doc/scala/api/scala-compiler/index/index-v.html
/usr/share/doc/scala/api/scala-compiler/index/index-h.html
/usr/share/doc/scala/api/scala-compiler/index/index-p.html
/usr/share/doc/scala/api/scala-compiler/index/index-w.html
/usr/share/doc/scala/api/scala-compiler/index/index-e.html
/usr/share/doc/scala/api/scala-compiler/index/index-n.html
/usr/share/doc/scala/api/scala-compiler/index/index-o.html
/usr/share/doc/scala/api/scala-compiler/index/index-m.html
/usr/share/doc/scala/api/scala-compiler/index/index-b.html
/usr/share/doc/scala/api/scala-compiler/index/index-g.html
/usr/share/doc/scala/api/scala-compiler/package.html
/usr/share/doc/scala/api/scala-compiler/index.js
/usr/share/doc/scala/api/scala-compiler/META-INF
/usr/share/doc/scala/api/scala-compiler/META-INF/MANIFEST.MF
/usr/share/doc/scala/LICENSE.md
/usr/share/doc/scala/README
/usr/share/doc/scala/copyright
/usr/bin
/usr/bin/scala
/usr/bin/scalap
/usr/bin/fsc
/usr/bin/scalac
/usr/bin/scaladoc
4.确认是否安装成功
scala -version
三 安装IDEA
1.下载社区版IDEA 压缩包ideaIC-2017.2.3.tar.gz
2.解压移动文件
tar-xzvf ideaIC-2017.2.3.tar.gz
mv ideaIC-2017.2.3 /usr/IDEA
3.配置环境变量并启动
exportIDEA_HOME=/opt/IDEA
exportPATH=$PATH:$JAVA_HOME/bin:$CLASSPATH:$IDEA_HOME/bin
4.生效环境变量配置
. .profile
5.启动测试
idea.sh
四安装scala-idea插件
1.启动IDEA
idea.sh
2.添加插件
同windows,启动IDea后,右下角点击配置差距
3.创建工程
同windows,
4.测试是否正常执行
同windows,