Ubuntu上Eclipse Scala IDE安装

时间:2024-03-23 22:29:36

前置准备Hadoop集群

Scala IDE eclipse集成环境安装在master服务器上

1.Scala IDE下载

http://downloads.typesafe.com/scalaide-pack/4.7.0-vfinal-oxygen-212-20170929/scala-SDK-4.7.0-vfinal-2.12-linux.gtk.x86_64.tar.gz

2.启动和设置工作空间

Ubuntu上Eclipse Scala IDE安装

3、添加程序包

    (1)PyDev

Ubuntu上Eclipse Scala IDE安装       

4.设置字符串替代变量

     Window-Perferenes-Run/Debug-String Substitution

     SPARK_HOME /usr/loca/spark

     HADOOP_CONF_DIR /usr/local/hadoop/etc/hadoop

     PYSPARK_PYTHON /home/hduser/anaconda2/bin/python

Ubuntu上Eclipse Scala IDE安装

5.PyDev设置Python链接库

    Window-Perferences-PyDev-Interpreter-Python Interpreter

Ubuntu上Eclipse Scala IDE安装

选择/usr/bin/python2.7

6.PyDev设置anaconda2链接库路径

   Window-Perferences-PyDev-Interpreter-Python Interpreter-Libraries-New Folder

    Ubuntu上Eclipse Scala IDE安装

   Ubuntu上Eclipse Scala IDE安装

7.PyDev设置Spark Python链接库

  Window-Perferences-PyDev-Interpreter-Python Interpreter-Libraries-New Egg/Zip(s)

Ubuntu上Eclipse Scala IDE安装

8、PyDev设置环境变量

      Window-Perferences-PyDev-Interpreter-Python Interpreter-Environment

      SPARK_HOME ${SPARK_HOME}

      HADOOP_CONF_DIR ${HADOOP_CONF_DIR}

Ubuntu上Eclipse Scala IDE安装​​​​​​​