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
59b19984
Commit
59b19984
authored
Apr 12, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将百科id与tag关联
parent
c9142a48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+15
-2
No files found.
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
59b19984
...
@@ -709,8 +709,8 @@ object copy_database {
...
@@ -709,8 +709,8 @@ object copy_database {
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"diary_video"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"diary_video"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"data_feed_click"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"data_feed_click"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"blacklist"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_prod"
,
tableName
=
"blacklist"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_test"
,
tableName
=
"
bl_device_list
"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_test"
,
tableName
=
"
tl_hdfs_wiki_item_tag_view
"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_
prod"
,
tableName
=
"data_feed_exposure
"
)
ti
.
tidbMapTable
(
dbName
=
"jerry_
test"
,
tableName
=
"Knowledge_network
"
)
ti
.
tidbMapTable
(
dbName
=
"eagle"
,
tableName
=
"src_mimas_prod_api_diary"
)
ti
.
tidbMapTable
(
dbName
=
"eagle"
,
tableName
=
"src_mimas_prod_api_diary"
)
...
@@ -729,6 +729,19 @@ object copy_database {
...
@@ -729,6 +729,19 @@ object copy_database {
GmeiConfig
.
writeToJDBCTable
(
copy_data
,
"tl_hdfs_wiki_item_tag_view"
,
SaveMode
.
Overwrite
)
GmeiConfig
.
writeToJDBCTable
(
copy_data
,
"tl_hdfs_wiki_item_tag_view"
,
SaveMode
.
Overwrite
)
val
new_data
=
sc
.
sql
(
s
"""
|select a.item_id,a.tag_id,b.id
|from tl_hdfs_wiki_item_tag_view a
|inner join Knowledge_network b
|on a.item_id=b.id
|where a.partition_date='${partition_date}'
"""
.
stripMargin
)
GmeiConfig
.
writeToJDBCTable
(
new_data
,
"Knowledge_network_data"
,
SaveMode
.
Overwrite
)
}
}
...
...
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