初期化メソッドでハイブ conf 変数を読み込もうとしていますが、うまくいきません。
私のUDFクラス:
public class MyUDF extends GenericUDTF {
MapredContext _mapredContext;
@Override
public void configure(MapredContext mapredContext) {
_mapredContext = mapredContext;
super.configure(mapredContext);
}
@Override
public StructObjectInspector initialize(ObjectInspector[] args) throws UDFArgumentException {
Configuration conf = _mapredContext.getJobConf();
// i am getting conf as null
}
}