Ja, das ist möglich. Was sind die Variablen, die Sie brauchen, die Sie in Spark-Submit posten können, wie Sie es tun?
spark-submit --deploy-mode cluster myapp.jar
Nehmen Sie Variablen von http://spark.apache.org/docs/latest/configuration.html und hängt von Ihrer Optimierung Verwendung dieser. Diese link könnte auch hilfreich sein.
habe ich im Cluster-Modus verwenden, aber jetzt in GARN verwende ich so meine Variablen sind wie folgt: (hoffentlich hilfreich)
[email protected]:/usr/local/spark$ ./bin/spark-submit --class com.hastimal.Processing --master yarn-cluster --num-executors 15 --executor-memory 52g --executor-cores 7 --driver-memory 52g --driver-cores 7 --conf spark.default.parallelism=105 --conf spark.driver.maxResultSize=4g --conf spark.network.timeout=300 --conf spark.yarn.executor.memoryOverhead=4608 --conf spark.yarn.driver.memoryOverhead=4608 --conf spark.akka.frameSize=1200 --conf spark.io.compression.codec=lz4 --conf spark.rdd.compress=true --conf spark.broadcast.compress=true --conf spark.shuffle.spill.compress=true --conf spark.shuffle.compress=true --conf spark.shuffle.manager=sort /users/hastimal/Processing.jar Main_Class /inputRDF/rdf_data_all.nt /output /users/hastimal/ /users/hastimal/query.txt index 2
Dabei mein Glas folgenden sind Argumente der Klasse.
cc /inputData/data_all.txt/Ausgabe/users/hastimal/ /users/hastimal/query.txt Index 2
Ich hätte sagen sollen, dass ich Funken im Standalone-Modus verwende - kein Garn oder Mesos –
Hast du irgendwann einen Weg gefunden? –