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
2d07aa95
Commit
2d07aa95
authored
Jul 08, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update field
parent
518ddf1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+3
-4
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
2d07aa95
...
@@ -191,9 +191,6 @@ def consume_kafka():
...
@@ -191,9 +191,6 @@ def consume_kafka():
db
.
close
()
db
.
close
()
cursor
.
close
()
cursor
.
close
()
# TODO
device_ids_lst
=
[
"androidid_a25a1129c0b38f7b"
]
sparkConf
=
SparkConf
()
.
set
(
"spark.hive.mapred.supports.subdirectories"
,
"true"
)
\
sparkConf
=
SparkConf
()
.
set
(
"spark.hive.mapred.supports.subdirectories"
,
"true"
)
\
.
set
(
"spark.hadoop.mapreduce.input.fileinputformat.input.dir.recursive"
,
"true"
)
\
.
set
(
"spark.hadoop.mapreduce.input.fileinputformat.input.dir.recursive"
,
"true"
)
\
.
set
(
"spark.tispark.plan.allow_index_double_read"
,
"false"
)
\
.
set
(
"spark.tispark.plan.allow_index_double_read"
,
"false"
)
\
...
@@ -226,7 +223,9 @@ def consume_kafka():
...
@@ -226,7 +223,9 @@ def consume_kafka():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
start
=
datetime
.
datetime
.
now
()
start
=
datetime
.
datetime
.
now
()
consume_kafka
()
update_tag3_user_portrait
(
"androidid_a25a1129c0b38f7b"
)
# TODO
# consume_kafka()
end
=
datetime
.
datetime
.
now
()
end
=
datetime
.
datetime
.
now
()
print
(
end
-
start
)
print
(
end
-
start
)
print
(
"done"
)
print
(
"done"
)
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