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
d9da848a
Commit
d9da848a
authored
Nov 14, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
63f67cdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
dist_update_user_portrait_service.py
eda/smart_rank/dist_update_user_portrait_service.py
+0
-5
No files found.
eda/smart_rank/dist_update_user_portrait_service.py
View file @
d9da848a
...
...
@@ -147,17 +147,12 @@ if __name__ == '__main__':
# 标签id对应的中文名称
all_tags_name
=
get_all_tags_name
()
# 搜索词tag
search_words_synonym_tags_key
=
"search:words:synonym:tags"
search_words_synonym_tags_json
=
json
.
dumps
(
all_word_tags
)
# gm_kv_cli.set(search_words_synonym_tags_key, search_words_synonym_tags_json)
redis_client
.
set
(
search_words_synonym_tags_key
,
search_words_synonym_tags_json
)
# 词的tag缓存hash
search_words_synonym_tags_hash_key
=
"gm:home:feed:words:tag"
redis_client
.
hmset
(
search_words_synonym_tags_hash_key
,
all_word_tags
)
# rdd
sparkConf
=
SparkConf
()
.
set
(
"spark.hive.mapred.supports.subdirectories"
,
"true"
)
\
.
set
(
"spark.hadoop.mapreduce.input.fileinputformat.input.dir.recursive"
,
"true"
)
\
...
...
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