官术网_书友最值得收藏!

Developing a Spark application in IntelliJ IDEA with SBT

Before Eclipse became famous, IntelliJ IDEA was considered best of the breed in IDEs. IDEA has not shed its former glory yet and a lot of developers love IDEA. IDEA also has a community edition, which is free. IDEA provides native support for SBT, which makes it ideal for SBT and Scala development.

How to do it...

Perform the following steps to develop a Spark application on IntelliJ IDEA with SBT:

  1. Add the sbt-idea plugin.
  2. Add to the global plugin file:
    $mkdir /home/hduser/.sbt/0.13/plugins
    $echo addSbtPlugin("com.github.mpeltone" % "sbt-idea" % "1.6.0" ) > /home/hduser/.sbt/0.12/plugins/plugin.sbt
    

    Alternatively, you can add to your project as well:

    $cd <project-home>
    $ echo addSbtPlugin("com.github.mpeltone" % "sbt-idea" % "1.6.0" ) > plugin.sbt
    

IDEA is ready to use with SBT.

Now you can develop Spark code using Scala and build using SBT.

主站蜘蛛池模板: 和顺县| 乌鲁木齐市| 临洮县| 贺州市| 从化市| 卓资县| 新营市| 利川市| 闽侯县| 轮台县| 南召县| 北辰区| 永胜县| 宝鸡市| 大田县| 罗平县| 逊克县| 原阳县| 平凉市| 吴江市| 镇康县| 台南市| 漳平市| 九龙坡区| 丹凤县| 闽侯县| 东至县| 宁海县| 洛川县| 治多县| 山东| 太仆寺旗| 咸宁市| 嘉禾县| 化州市| 辽阳市| 积石山| 海淀区| 凤冈县| 万山特区| 南丹县|