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

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.

主站蜘蛛池模板: 东阿县| 甘洛县| 巴林左旗| 贵南县| 马龙县| 黄平县| 利津县| 太原市| 彭州市| 东明县| 灯塔市| 红原县| 舟山市| 宁夏| 读书| 博野县| 扎囊县| 涡阳县| 启东市| 平乡县| 文水县| 惠来县| 济南市| 克拉玛依市| 商河县| 萨嘎县| 商河县| 甘洛县| 建水县| 晋宁县| 乌拉特前旗| 永安市| 开原市| 四川省| 阳江市| 大邑县| 梅河口市| 井冈山市| 彭水| 普兰县| 枣阳市|