I am trying/experimenting with doing spark-submit application-jar where the application-jar is actually hosted in a remote repo (not local or HDFS or S3) Below is my example trying to run SparkPi directly from Maven:
spark-submit \
--class org.apache.examples.SparkPi \
--repositories https://mvnrepository.com/repos/central,https://repo.eclipse.org/content/repositories/paho-releases \
--packages org.apache.spark:spark-examples_2.10:0.9.0-incubating \
--jars https://repo1.maven.org/maven2/org/apache/spark/spark-examples_2.10/0.9.0-incubating/spark-examples_2.10-0.9.0-incubating.jar \
spark-examples_2.10-0.9.0-incubating.jar \
10000
It doesn't seem to work nor fail, here is the output:
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 123 | 0 | 0 | 21 || 102 | 0 |
---------------------------------------------------------------------
:: retrieving :: org.apache.spark#spark-submit-parent-a0c4af8a-2537-45f2-a26d-d9d697abfb2b
confs: [default]
0 artifacts copied, 102 already retrieved (0kB/50ms)
20/07/17 09:53:35 WARN Utils: Your hostname, ****.local resolves to a loopback address: 127.0.0.1; using **** instead (on interface en0)
20/07/17 09:53:35 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
20/07/17 09:53:36 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
log4j:WARN No appenders could be found for logger (org.apache.spark.deploy.SparkSubmit$$anon$2).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
I maybe wrong in my assumption that it should work, but appreciate any feedback