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
fb6b1160
Commit
fb6b1160
authored
Jul 08, 2021
by
宋柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api_sub_tag替换api_tag
parent
6ad41f85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tag3_start.sh
eda/smart_rank/tag3_start.sh
+6
-2
No files found.
eda/smart_rank/tag3_start.sh
View file @
fb6b1160
#!/bin/bash
spark_mode
=
$1
# 新画像
# log 90days
mysql
-u
doris
-po5gbA27hXHHm
-h
172.16.30.136
-D
doris_prod
-P
3306
-e
"delete from kafka_tag3_log where log_time < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 90 day))"
...
...
@@ -28,4 +28,8 @@ mysql -u doris -po5gbA27hXHHm -h 172.16.50.175 -P 3306 -D doris_olap -e "delete
# mysql -u doris -po5gbA27hXHHm -h 172.16.50.175 -P 3306 -D doris_olap -e "delete from user_tag3_event_portrait where date < DATE_SUB(CURDATE(), INTERVAL 60 day)"
/opt/spark/bin/spark-submit
--master
yarn
--deploy-mode
client
--queue
root.strategy
--driver-memory
16g
--executor-memory
1g
--executor-cores
1
--num-executors
70
--conf
spark.default.parallelism
=
100
--conf
spark.storage.memoryFraction
=
0.5
--conf
spark.shuffle.memoryFraction
=
0.3
--conf
spark.executorEnv.LD_LIBRARY_PATH
=
"/opt/java/jdk1.8.0_181/jre/lib/amd64/server:/opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/lib64"
--conf
spark.locality.wait
=
0
--archives
/srv/apps/ftrl/bandits.zip
--jars
/srv/apps/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar,/srv/apps/spark-connector_2.11-1.9.0-rc2.jar,/srv/apps/mysql-connector-java-5.1.38.jar /srv/apps/ffm-baseline_git/eda/smart_rank/tag3_update_user_portrait_offline.py
if
[
-n
"
${
spark_mode
}
"
]
;
then
/opt/spark/bin/spark-submit
--master
local
[
8]
--deploy-mode
client
--driver-memory
16g
--executor-memory
1g
--executor-cores
1
--num-executors
8
--conf
spark.default.parallelism
=
100
--conf
spark.storage.memoryFraction
=
0.5
--conf
spark.shuffle.memoryFraction
=
0.3
--conf
spark.executorEnv.LD_LIBRARY_PATH
=
"/opt/java/jdk1.8.0_181/jre/lib/amd64/server:/opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/lib64"
--conf
spark.locality.wait
=
0
--archives
/srv/apps/ftrl/bandits.zip
--jars
/srv/apps/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar,/srv/apps/spark-connector_2.11-1.9.0-rc2.jar,/srv/apps/mysql-connector-java-5.1.38.jar /srv/apps/ffm-baseline_git/eda/smart_rank/tag3_update_user_portrait_offline.py
else
/opt/spark/bin/spark-submit
--master
yarn
--deploy-mode
client
--queue
root.strategy
--driver-memory
16g
--executor-memory
1g
--executor-cores
1
--num-executors
70
--conf
spark.default.parallelism
=
100
--conf
spark.storage.memoryFraction
=
0.5
--conf
spark.shuffle.memoryFraction
=
0.3
--conf
spark.executorEnv.LD_LIBRARY_PATH
=
"/opt/java/jdk1.8.0_181/jre/lib/amd64/server:/opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/lib64"
--conf
spark.locality.wait
=
0
--archives
/srv/apps/ftrl/bandits.zip
--jars
/srv/apps/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar,/srv/apps/spark-connector_2.11-1.9.0-rc2.jar,/srv/apps/mysql-connector-java-5.1.38.jar /srv/apps/ffm-baseline_git/eda/smart_rank/tag3_update_user_portrait_offline.py
fi
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