PIG Commands

PIG:

  • PIG Commands have to be executed in Grunt Shell.
  • We can put multiple PIG Commands in a file line by line and save it with .pig extension which is generally called PIG Script.
  • The PIG Script can be executed using scheduler also.
  • PIG Commands are similar to SQL Commands.

Data Types:

Integer (java.lang.Integer), Float (java.lang.Float), Double (java.lang.Double), chararray (java.lang.String), Atom (Field) , Tuple (Series of Fields), Bag (Series of Tuples), Map (Key Value Pair)