Is it possible to access map reduce jobconf information in the Initialize method of the hive generic udf.
I am able to access it in the evaluate method, but when I try to use it in Initialize method it throws error
code:
@Override
public void configure( MapredContext context ) {
this.context = context;
}
In the evalaute method, I have the below code to access the user who initiated this udf.
String user = context.getJobConf().getUser();
Is it possible to get the USER information in the initialize method ???
Is it possible to access map reduce jobconf information in the Initialize method of the hive generic udf.
I am able to access it in the evaluate method, but when I try to use it in Initialize method it throws error
code:
@Override
public void configure( MapredContext context ) {
this.context = context;
}
In the evalaute method, I have the below code to access the user who initiated this udf.
String user = context.getJobConf().getUser();
Is it possible to get the USER information in the initialize method ???
0 commentaires:
Enregistrer un commentaire