Mortar has joined Datadog, the leading SaaS-based monitoring service for cloud applications. Read more about what this means here.

Code Editors and Mortar Projects

Chosing a good editor and setting it up well can make a huge difference in your Pig development experience.

Which Editor?

What code editor to use is always a matter of personal preference, but here are some things to think about when picking the right editor for pig.

  • Pig Syntax highlighting
  • Ease of developing python/jython UDFs
  • Ease of developing java UDFs
  • Ease of running post-Mortar analysis

You don't necessarily need to write your UDFs in the same editor that you write Pig, but having everything in one place can be handy. An extensive list of editor extensions for Pig can be found here. Below are a couple of suggestions for environments compatible with Pig development.


Sublime Text

Sublime Text is a great editor that works with many different platforms. A plugin for Pig is available here; installation instructions are in the README.

Sublime Text 2


TextMate/TextMate2

TextMate is a very popular, inexpensive, and flexible editor for Mac OS X. A plugin bundle for Pig is available here; installation instructions in the README.

TextMate


Vim

Vi has been around for nearly 30 years, and its more aesthetically pleasing stepchild Vim has been around for 20. Vim is free and minimalist, with a Pig syntax hightlighting file available here.

Vim


Intellij/PyCharm

On the other end of the spectrum, JetBrains provides full-featured IDEs tailored to particular languages. Of most interest to a Pig developer are Intellij (Java + everything) and PyCharm (Python). Though they offer more syntax feedback the languages they primarily target, the Pig support is roughly equivalent to any of the text editors available.

To install the Pig plugin, download from here. Under Preferences->Plugins, select "Install plugin from disk..."

PyCharm