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

  • Spark Cookbook
  • Rishi Yadav
  • 140字
  • 2021-07-16 13:44:00

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.

主站蜘蛛池模板: 乌兰县| 临朐县| 睢宁县| 瑞丽市| 会宁县| 怀宁县| 阿克苏市| 津市市| 枣强县| 丹东市| 门头沟区| 新疆| 潜山县| 社旗县| 察隅县| 大余县| 安庆市| 卢龙县| 平利县| 内乡县| 图木舒克市| 西丰县| 五台县| 泾川县| 丰都县| 武胜县| 电白县| 苏尼特右旗| 陇西县| 白城市| 定安县| 介休市| 博爱县| 长寿区| 关岭| 喀喇沁旗| 衡南县| 改则县| 疏附县| 博客| 台东市|