Commit c795ec29 authored by sml's avatar sml

代码提交

parent 09a13fa7
...@@ -128,6 +128,9 @@ public class SqlParameters extends AbstractParameters { ...@@ -128,6 +128,9 @@ public class SqlParameters extends AbstractParameters {
this.sqlScript = sqlScript; this.sqlScript = sqlScript;
//设置执行引擎 //设置执行引擎
String executioEngine = scriptObj.getString("executioEngine"); String executioEngine = scriptObj.getString("executioEngine");
if (StringUtils.isEmpty(executioEngine)) {
throw new RuntimeException("执行引擎不为空!");
}
this.executioEngine = executioEngine; this.executioEngine = executioEngine;
//产生evn模板 //产生evn模板
......
...@@ -5,8 +5,10 @@ src_dir=${src_dir!} ...@@ -5,8 +5,10 @@ src_dir=${src_dir!}
file_suffix="${file_suffix!}" file_suffix="${file_suffix!}"
# 要上传到hdfs的目录 # 要上传到hdfs的目录
des_dir=${des_dir!} des_dir=${des_dir!}
# 获取 src_dir 下所有文件为 file_suffix 的文件 # 获取 src_dir 下所有文件为 file_suffix 的文件
cd ${src_dir} cd ${src_dir}
if [ $file_suffix = "" ]; then if [ $file_suffix = "" ]; then
echo "没有后缀" echo "没有后缀"
filename=`ls -l | grep ^- | awk '{print $9}'` filename=`ls -l | grep ^- | awk '{print $9}'`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment