private static void checkJarFileDirPath(String sqlRootDir, String path, String pluginLoadMode) {
        if (pluginLoadMode.equalsIgnoreCase(EPluginLoadMode.LOCALTEST.name())) {
            LOG.warn("be sure you are not in LocalTest mode, if not, check the sqlRootDir");
        } else {
            if (sqlRootDir == null || sqlRootDir.isEmpty()) {
                throw new RuntimeException("sqlPlugin is empty !");
            }

            File jarFile = new File(path);

            if (!jarFile.exists()) {
                throw new RuntimeException(String.format("path %s not exists!!!", path));
            }
        }
    }
Reason:
Date: 2018/6/27
Company: www.dtstack.com
@author xuchao
core/src/main/java/com/dtstack/flink/sql/util/PluginUtil.java