Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz-dmp-cmdexectool
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
jz-dmp-cmdexectool
Commits
c795ec29
Commit
c795ec29
authored
Mar 15, 2021
by
sml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
09a13fa7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
SqlParameters.java
.../cmdexectool/scheduler/common/task/sql/SqlParameters.java
+3
-0
hdfs_upload.ftl
src/main/resources/templates/hdfs_upload.ftl
+2
-0
No files found.
src/main/java/com/jz/dmp/cmdexectool/scheduler/common/task/sql/SqlParameters.java
View file @
c795ec29
...
...
@@ -128,6 +128,9 @@ public class SqlParameters extends AbstractParameters {
this
.
sqlScript
=
sqlScript
;
//设置执行引擎
String
executioEngine
=
scriptObj
.
getString
(
"executioEngine"
);
if
(
StringUtils
.
isEmpty
(
executioEngine
))
{
throw
new
RuntimeException
(
"执行引擎不为空!"
);
}
this
.
executioEngine
=
executioEngine
;
//产生evn模板
...
...
src/main/resources/templates/hdfs_upload.ftl
View file @
c795ec29
...
...
@@ -5,8 +5,10 @@ src_dir=${src_dir!}
file_suffix
=
"
${
file_suffix
!
}
"
# 要上传到hdfs的目录
des_dir
=
${
des_dir
!
}
# 获取 src_dir 下所有文件为 file_suffix 的文件
cd
${
src_dir
}
if
[
$file_suffix
=
""
]
;
then
echo
"没有后缀"
filename
=
`
ls
-l
|
grep
^- |
awk
'{print $9}'
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment