How to keep PIG job log file when it is successful ?
- By default errors are logged to pig.logfile which can be set in $PIG_HOME/conf/pig.properties. If we want to log status messages also, then we have to prepare a valid log4j properties
E.g: rename log4j.properties.template to log4j.properties in $PIG_HOME/conf and Set the following:
- Once the log4j.properties file is prepared, we have to open the pig.properties file
- One of the Easy way is to redirect output