public class TestUdf extends EvalFunc<String>{
@Override
public String exec(Tuple input) throws IOException
{
log.info("My message*********************");
String inputData = (String)input.get(0);
return inputData;
}
}
Please check my pig log Properties file in screenshot which is being used by my pig script as shown below.
REGISTER hdfs:///user/maria_dev/test.jar;
aa = LOAD 'mydoc' USING PigStorage('\t') as (email: chararray) ;
finaloutput =FOREACH aa GENERATE test.TestUdf(email) as email;
dump finaloutput;