Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ private TaskStatus runInternal(TaskToolbox toolbox) throws Exception
try {
registerResourceCloserOnAbnormalExit(config -> killHadoopJob());
String hadoopJobIdFile = getHadoopJobIdFileName();
logExtensionsConfig();
final ClassLoader loader = buildClassLoader(toolbox);
boolean determineIntervals = spec.getDataSchema().getGranularitySpec().inputIntervals().isEmpty();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public abstract class HadoopTask extends AbstractBatchIndexTask
{
private static final Logger log = new Logger(HadoopTask.class);

static final Injector INJECTOR = new StartupInjectorBuilder().withExtensions().build();
static final Injector INJECTOR = new StartupInjectorBuilder().forServer().build();
private static final ExtensionsLoader EXTENSIONS_LOADER = ExtensionsLoader.instance(INJECTOR);

private final List<String> hadoopDependencyCoordinates;
Expand Down Expand Up @@ -207,6 +207,15 @@ public static ClassLoader buildClassLoader(final List<String> hadoopDependencyCo
return classLoader;
}

/**
* This method logs the {@link ExtensionsConfig} that was used to fetch the hadoop dependencies and build the classpath
* for the jobs
*/
protected static void logExtensionsConfig()
{
log.info("HadoopTask started with the following config:\n%s", EXTENSIONS_LOADER.config().toString());
}

/**
* This method tries to isolate class loading during a Function call
*
Expand Down