如何在代码中执行spark

如何在代码中执行spark


守候你守候我
浏览 875回答 1
1回答

12345678_0001

写Linux脚本#!/bin/shif [ $# -lt 2 ] ;thenecho "Useage:$0 <hdfs_input_file> $1 <hdfs_output_file>"exitelseecho "wordcount is starting!"spark-submit \--master spark://spark:7077 \--class WordCount \--executor-memory 512m \--total-executor-cores 6 \~/input/WordCount.jar \"$1" \"$2"echo "wordcount is stopped!"fi
打开App,查看更多内容
随时随地看视频慕课网APP