tensorflowonspark集群提交命令

tensorflowonspark集群提交命令

本地调试模型训练
spark-submit --master yarn
–deploy-mode cluster
–queue default
–executor-cores 1
–executor-memory 600M
–conf spark.yarn.executor.memoryOverhead=1500
–archives hdfs://node1:9000/user/xxxxx/py36.zip#Python
–conf spark.executorEnv.LD_LIBRARY_PATH="/sdb/hadoop-3.3.0/lib/native:$JAVA_HOME/jre/lib/amd64/server"
–conf spark.pyspark.python=./Python/py36/bin/python
–conf spark.pyspark.driver.python=./Python/py36/bin/python
–conf spark.yarn.maxAppAttempts=1
–conf spark.yarn.executor.memoryOverhead=256
–conf spark.task.cpus=1
–conf spark.cores.max=4
mnist_spark.py
–images_labels hdfs://node1:9000/user/xxxxx/data/train.csv
–cluster_size 2
–model_dir hdfs://node1:9000/user/xxxxx/model
–epochs 1
–mode train

spark-submit --master yarn
–deploy-mode cluster
–queue default
–executor-cores 1
–executor-memory 600M
–conf spark.yarn.executor.memoryOverhead=1500
–archives hdfs://node1:9000/user/xxxxx/py36.zip#Python
–conf spark.executorEnv.LD_LIBRARY_PATH="/sdb/hadoop-3.3.0/lib/native:$JAVA_HOME/jre/lib/amd64/server"
–conf spark.pyspark.python=./Python/py36/bin/python
–conf spark.pyspark.driver.python=./Python/py36/bin/python
–conf spark.yarn.maxAppAttempts=1
–conf spark.yarn.executor.memoryOverhead=256
–conf spark.task.cpus=1
–conf spark.cores.max=4
mnist_spark.py
–batch_size 1
–images_labels hdfs://node1:9000/user/xxxxx/data/train.csv
–cluster_size 2
–model_dir hdfs://node1:9000/user/xxxxx/model
–epochs 1
–mode predict
–output hdfs://node1:9000/user/xxxxx/pred_all
–output1 hdfs://node1:9000/user/xxxxx/predict

保存本地文件
spark-submit --master yarn
–deploy-mode cluster
–queue default
–executor-cores 1
–executor-memory 600M
–conf spark.executorEnv.LD_LIBRARY_PATH="/sdb/hadoop-3.3.0/lib/native:$JAVA_HOME/jre/lib/amd64/server"
–conf spark.pyspark.python=/sdb/tf/py36/bin/python
–conf spark.pyspark.driver.python=/sdb/tf/py36/bin/python
–conf spark.yarn.maxAppAttempts=1
–conf spark.yarn.executor.memoryOverhead=256
–conf spark.task.cpus=1
–conf spark.cores.max=4
mnist_spark.py
–batch_size 1
–images_labels hdfs://node1:9000/user/xxxxx/data/train1.csv
–cluster_size 2
–model_dir hdfs://node1:9000/user/xxxxx/model
–epochs 1
–mode predict
–output /sdb/tf/pred
–output1 hdfs://node1:9000/user/xxxxx/predict

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值