Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
serviceRec
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭羽
serviceRec
Commits
947e1950
Commit
947e1950
authored
Jul 09, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hive test
parent
2f8f1919
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
featureeng_export.sh
shell/featureeng_export.sh
+2
-1
No files found.
shell/featureeng_export.sh
View file @
947e1950
source
/srv/envs/serviceRec/bin/activate
source
/srv/envs/serviceRec/bin/activate
python_os
=
/srv/envs/serviceRec/bin/python
path
=
/srv/apps/serviceRec
path
=
/srv/apps/serviceRec
day_count
=
$1
day_count
=
$1
spark_mode
=
$2
spark_mode
=
$2
...
@@ -8,7 +9,7 @@ pythonFile=${path}/spark/featureEng.py
...
@@ -8,7 +9,7 @@ pythonFile=${path}/spark/featureEng.py
/opt/hadoop/bin/hdfs dfs
-rmr
/
${
content_type
}
_feature_v1_train
/opt/hadoop/bin/hdfs dfs
-rmr
/
${
content_type
}
_feature_v1_train
/opt/hadoop/bin/hdfs dfs
-rmr
/
${
content_type
}
_feature_v1_test
/opt/hadoop/bin/hdfs dfs
-rmr
/
${
content_type
}
_feature_v1_test
if
[
-n
"
${
spark_mode
}
"
]
;
then
if
[
-n
"
${
spark_mode
}
"
]
;
then
/opt/spark/bin/spark-submit
--master
local
[
4]
--deploy-mode
client
--driver-memory
8g
--executor-memory
2g
--executor-cores
1
--num-executors
4
--conf
spark.default.parallelism
=
100
--conf
spark.storage.memoryFraction
=
0.5
--conf
spark.shuffle.memoryFraction
=
0.3
--conf
spark.locality.wait
=
0
--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
${
pythonFile
}
$day_count
/opt/spark/bin/spark-submit
--master
local
[
4]
--deploy-mode
client
--driver-memory
8g
--executor-memory
2g
--executor-cores
1
--num-executors
4
--conf
spark.
pyspark.python
=
${
python_os
}
--conf
spark.
default.parallelism
=
100
--conf
spark.storage.memoryFraction
=
0.5
--conf
spark.shuffle.memoryFraction
=
0.3
--conf
spark.locality.wait
=
0
--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
${
pythonFile
}
$day_count
else
else
/opt/spark/bin/spark-submit
--master
yarn
--deploy-mode
client
--queue
root.strategy
--driver-memory
8g
--executor-memory
2g
--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.locality.wait
=
0
--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
${
pythonFile
}
$day_count
/opt/spark/bin/spark-submit
--master
yarn
--deploy-mode
client
--queue
root.strategy
--driver-memory
8g
--executor-memory
2g
--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.locality.wait
=
0
--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
${
pythonFile
}
$day_count
fi
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