Skip to content

Instantly share code, notes, and snippets.

@milindjagre
Created May 18, 2017 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milindjagre/c6477f90b7af4ce6e7e0357f968dfa52 to your computer and use it in GitHub Desktop.
Save milindjagre/c6477f90b7af4ce6e7e0357f968dfa52 to your computer and use it in GitHub Desktop.
this pig script is used to demonstrate the TEZ execution mode in Apache PIG
-- this pig script is used for demonstrating TEZ execution mode
-- the script is quite straightforward
-- the execution mode is enabled while running the script
-- loading the data from input post24.txt file into pig relation input_data
input_data = LOAD '/hdpcd/input/post24/post24.txt' USING PigStorage();
-- storing this input_data into output HDFS directory
STORE input_data INTO '/hdpcd/output/post24';
-- this script should be executed with the following command
-- "pig -x tez post24.pig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment