Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
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
addbcec1
Commit
addbcec1
authored
Mar 05, 2021
by
sml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
e967006e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
MyBaseDataSource.java
...mdexectool/scheduler/dao/datasource/MyBaseDataSource.java
+40
-0
source_hive.ftl
src/main/resources/templates/source_hive.ftl
+15
-0
No files found.
src/main/java/com/jz/dmp/cmdexectool/scheduler/dao/datasource/MyBaseDataSource.java
0 → 100644
View file @
addbcec1
package
com
.
jz
.
dmp
.
cmdexectool
.
scheduler
.
dao
.
datasource
;
import
com.jz.dmp.cmdexectool.scheduler.common.enums.DbType
;
import
com.jz.dmp.cmdexectool.scheduler.common.enums.MyDbType
;
/**
* @ClassName: MyBaseDataSource
* @Description: TODO(DMP自定义的数据源)
* @author ybz
* @date 2021年3月5日
*
*/
public
class
MyBaseDataSource
extends
BaseDataSource
{
/**
* 数据源类型
*/
private
MyDbType
myDbType
;
public
MyDbType
getMyDbType
()
{
return
myDbType
;
}
public
void
setMyDbType
(
MyDbType
myDbType
)
{
this
.
myDbType
=
myDbType
;
}
@Override
public
String
driverClassSelector
()
{
// TODO Auto-generated method stub
return
null
;
}
@Override
public
DbType
dbTypeSelector
()
{
// TODO Auto-generated method stub
return
null
;
}
}
src/main/resources/templates/source_hive.ftl
0 → 100644
View file @
addbcec1
spark {
<#if catalogImplementation??>
spark.sql.catalogImplementation = "${catalogImplementation!}"
</#if>
}
hive {
<#if pre_sql??>
# 进行预处理的sql, 如果不需要预处理,可以使用select * from hive_db.hive_table
pre_sql = "${pre_sql!}"
</#if>
<#if result_table_name??>
result_table_name = "${result_table_name!}"
</#if>
}
\ No newline at end of file
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