Skip to content

Commit 12dc5e7

Browse files
authored
[hotfix][core] fix in local dev run sql mode can't load core jar. (#1372)
1 parent 47fa8d7 commit 12dc5e7

File tree

1 file changed

+7
-1
lines changed
  • chunjun-core/src/main/java/com/dtstack/chunjun

1 file changed

+7
-1
lines changed

chunjun-core/src/main/java/com/dtstack/chunjun/Main.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.dtstack.chunjun.constants.ConstantValue;
2929
import com.dtstack.chunjun.dirty.DirtyConf;
3030
import com.dtstack.chunjun.dirty.utils.DirtyConfUtil;
31+
import com.dtstack.chunjun.enums.ClusterMode;
3132
import com.dtstack.chunjun.enums.EJobType;
3233
import com.dtstack.chunjun.environment.EnvFactory;
3334
import com.dtstack.chunjun.environment.MyLocalStreamEnvironment;
@@ -321,8 +322,13 @@ private static void configStreamExecutionEnvironment(
321322
factoryHelper.setPluginLoadMode(options.getPluginLoadMode());
322323
factoryHelper.setEnv(env);
323324
factoryHelper.setExecutionMode(options.getMode());
324-
325325
DirtyConf dirtyConf = DirtyConfUtil.parse(options);
326+
// 注册core包
327+
if (ClusterMode.local.name().equalsIgnoreCase(options.getMode())) {
328+
factoryHelper.registerCachedFile(
329+
"", Thread.currentThread().getContextClassLoader(), "");
330+
}
331+
326332
factoryHelper.registerCachedFile(
327333
dirtyConf.getType(),
328334
Thread.currentThread().getContextClassLoader(),

0 commit comments

Comments
 (0)