Anonymous Person
Anonymous Person

Reputation: 1538

storing PIG log files in a separate folder

I would like to save my PIG log files (the ones that generate after an unsuccessful execution) to another folder (say the Desktop). It is currently being saved in the Documents folder and I have almost 100 - 150 of them just lying around.

I'm on an Ubuntu environment, and doing this locally (not on HDInsight, or on a Cloudera VM).

Please help!

Upvotes: 0

Views: 2063

Answers (2)

Avikool91
Avikool91

Reputation: 737

It keeps all error log files in current working directory. If you ant to save them in separate folders, you should open $PIG_HOME/conf/pig.propertes file and update value of pig.logfile paramater.

Upvotes: 2

Vignesh I
Vignesh I

Reputation: 2221

By default pig keeps the log files in the current working directory. If you want to specify a different directory you can do that by passing -l option.

In mapreduce mode:

pig -l /log/path

In local mode:

pig -x local -l /log/path

Upvotes: 1

Related Questions