请参阅下面的代码段。它有方法getLauncherClasses使用PIG_MAIN_CLASS_NAME 但是我没有在给定包“org.apache.oozie.action.hadoop.PigMain”的jar中找到任何类
public class PigActionExecutor扩展ScriptLanguageActionExecutor {
private static final String PIG_MAIN_CLASS_NAME = "org.apache.oozie.action.hadoop.PigMain";
public PigActionExecutor() {
super("pig");
}
@SuppressWarnings("rawtypes")
@Override
public List<Class> getLauncherClasses() {
List<Class> classes = new ArrayList<Class>();
try {
classes.add(Class.forName(PIG_MAIN_CLASS_NAME));
classes.add(JSONParser.class);
}
catch (ClassNotFoundException e) {
throw new RuntimeException("Class not found", e);
}
return classes;
}
为什么PIG_MAIN_CLASS_NAME在jar中丢失?
答案 0 :(得分:0)
预计这个PigMain类将从oozie share lib路径加载。在我的情况下,oozie-sharelib-pig-4含有PigMain。