Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
5db1883e
Commit
5db1883e
authored
May 05, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取icon训练数据
parent
c1f098b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
data_feed_exposure_precise.scala
.../src/main/scala/com/gmei/data_feed_exposure_precise.scala
+6
-6
No files found.
eda/feededa/src/main/scala/com/gmei/data_feed_exposure_precise.scala
View file @
5db1883e
...
...
@@ -523,13 +523,13 @@ object icon_train_data {
val
temp_diary
=
sc
.
sql
(
s
"""
|select device_id,tag_id,level1_id as level
|select
'${stat_date}' as stat_date,
device_id,tag_id,level1_id as level
|from diary_tag_detail
|union all
|select device_id,tag_id,level2_id as level
|select
'${stat_date}' as stat_date,
device_id,tag_id,level2_id as level
|from diary_tag_detail
|union all
|select device_id,tag_id,level3_id as level
|select
'${stat_date}' as stat_date,
device_id,tag_id,level3_id as level
|from diary_tag_detail
"""
.
stripMargin
)
...
...
@@ -547,9 +547,9 @@ object icon_train_data {
// GmeiConfig.writeToJDBCTable("jdbc:mysql://172.16.40.158:4000/jerry_prod?user=root&password=3SYz54LS9#^9sBvC&rewriteBatchedStatements=true",result, table="data_feed_exposure_precise",SaveMode.Append)
// println("写入完成")
//
println("开始写入")
//
GmeiConfig.writeToJDBCTable(config.getString("jerry.jdbcuri"),result, table="data_feed_exposure_precise",SaveMode.Append)
//
println("写入完成")
println
(
"开始写入"
)
GmeiConfig
.
writeToJDBCTable
(
config
.
getString
(
"jerry.jdbcuri"
),
result
,
table
=
"data_feed_exposure_precise"
,
SaveMode
.
Append
)
println
(
"写入完成"
)
}
...
...
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