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

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.

主站蜘蛛池模板: 肇源县| 五大连池市| 宜君县| 广丰县| 阿鲁科尔沁旗| 周至县| 普宁市| 都江堰市| 泽库县| 阳朔县| 新兴县| 桓仁| 攀枝花市| 莱阳市| 洞头县| 潜江市| 湖口县| 鄂托克旗| 贵定县| 长治市| 普安县| 安图县| 台中县| 都昌县| 高雄市| 安远县| 确山县| 镇安县| 嵊泗县| 拉孜县| 库车县| 东丰县| 正阳县| 治县。| 屯门区| 陆良县| 北碚区| 宁远县| 天柱县| 兰考县| 巨野县|