|
@@ -14,6 +14,7 @@ import com.winhc.data.task.BaseTask;
|
|
|
import com.winhc.data.task.SinkTask;
|
|
|
import com.winhc.data.task.DownLoadTask;
|
|
|
import com.winhc.data.utils.*;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
@@ -46,15 +47,18 @@ public class DataPull {
|
|
|
if (params.containsKey("docker.start")) {
|
|
|
confPath = "/config.yml";
|
|
|
} else {
|
|
|
- Assert.isTrue(params.containsKey("conf"), "请输入配置文件路径\t:\t--conf conf_path");
|
|
|
+ Assert.isTrue(params.containsKey("conf"), "请输入配置文件路径\t:\t--conf conf_path\n");
|
|
|
confPath = params.get("conf");
|
|
|
}
|
|
|
|
|
|
- Assert.isTrue(FileUtils.fileExists(confPath), "配置文件不存在\t:\t检查conf路径是否正确");
|
|
|
+ Assert.isTrue(FileUtils.fileExists(confPath), "配置文件不存在\t:\t检查conf路径是否正确\n");
|
|
|
Map<String, String> confMap = new HashMap<>();
|
|
|
- Assert.isTrue(getYmlByFileNameOut(confPath, confMap), "conf解析异常\t:\t配置文件必须yml格式");
|
|
|
+ Assert.isTrue(getYmlByFileNameOut(confPath, confMap), "conf解析异常\t:\t配置文件必须yml格式\n");
|
|
|
//merge params
|
|
|
initAllConf(args, confMap);
|
|
|
+ String env = EnvConst.getValue("profile.activate");
|
|
|
+ logger.info("profile.activate: {}", env);
|
|
|
+ Assert.isTrue(StringUtils.isNotBlank(env), "请输入环境配置egg:\nprofile:\n activate: sj\n");
|
|
|
|
|
|
int queueSize = 100000;
|
|
|
int numThread = Integer.parseInt(EnvConst.getValue("winhc.task.numThread", "8"));
|