Skip to main content

Tutorial Intro

Let's discover Pig in less than 5 minutes.

Getting Started

Get started by creating a new Hello World App.

Or try Pig immediately with our Playground.

What you'll need

  • Pig version v1 or above:

Use REPL Locally

Simply run

pig_repl

Generate a new App

Generate a new App Simply create a File ending with the .pig extension

To run the Script use

pig_app --source <Path to Script>

Writing A Basic Hello World

There are Multiple Ways to do it

Simply Write it in enclosed "

"Hello World"

or Write two and Add them

"Hello"+"World"

Or, Write to Stdout using puts

puts("Hello");
puts("World")