[ 
https://issues.apache.org/jira/browse/SPARK-12280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcelo Vanzin resolved SPARK-12280.
------------------------------------
    Resolution: Cannot Reproduce

Please reopen with more info if you're still running into issues. Lots of 
people use this command line option and haven't run into problems.

> "--packages" command doesn't work in "spark-submit"
> ---------------------------------------------------
>
>                 Key: SPARK-12280
>                 URL: https://issues.apache.org/jira/browse/SPARK-12280
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Submit
>            Reporter: Anton Loss
>            Priority: Minor
>
> when running "spark-shell", then "--packages" option works as expected, but 
> with "spark-submit" it produces following stacktrace
> 15/12/11 17:05:48 WARN NativeCodeLoader: Unable to load native-hadoop library 
> for your platform... using builtin-java classes where applicable
> 15/12/11 17:05:51 WARN Client: Resource 
> file:/home/anton/data-tools-1.0-SNAPSHOT-jar-with-dependencies.jar added 
> multiple times to distributed cache.
> Exception in thread "main" java.io.FileNotFoundException: Requested file 
> maprfs:///home/mapr/.ivy2/jars/com.databricks_spark-csv_2.11-1.3.0.jar does 
> not exist.
>       at 
> com.mapr.fs.MapRFileSystem.getMapRFileStatus(MapRFileSystem.java:1332)
>       at com.mapr.fs.MapRFileSystem.getFileStatus(MapRFileSystem.java:942)
>       at com.mapr.fs.MFS.getFileStatus(MFS.java:151)
>       at 
> org.apache.hadoop.fs.AbstractFileSystem.resolvePath(AbstractFileSystem.java:467)
>       at org.apache.hadoop.fs.FileContext$25.next(FileContext.java:2193)
>       at org.apache.hadoop.fs.FileContext$25.next(FileContext.java:2189)
>       at org.apache.hadoop.fs.FSLinkResolver.resolve(FSLinkResolver.java:90)
>       at org.apache.hadoop.fs.FileContext.resolve(FileContext.java:2189)
>       at org.apache.hadoop.fs.FileContext.resolvePath(FileContext.java:601)
>       at 
> org.apache.spark.deploy.yarn.Client.copyFileToRemote(Client.scala:242)
>       at 
> org.apache.spark.deploy.yarn.Client$$anonfun$prepareLocalResources$6$$anonfun$apply$1.apply(Client.scala:366)
>       at 
> org.apache.spark.deploy.yarn.Client$$anonfun$prepareLocalResources$6$$anonfun$apply$1.apply(Client.scala:360)
>       at 
> scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
>       at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
>       at 
> org.apache.spark.deploy.yarn.Client$$anonfun$prepareLocalResources$6.apply(Client.scala:360)
>       at 
> org.apache.spark.deploy.yarn.Client$$anonfun$prepareLocalResources$6.apply(Client.scala:358)
>       at scala.collection.immutable.List.foreach(List.scala:318)
>       at 
> org.apache.spark.deploy.yarn.Client.prepareLocalResources(Client.scala:358)
>       at 
> org.apache.spark.deploy.yarn.Client.createContainerLaunchContext(Client.scala:561)
>       at 
> org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:115)
>       at org.apache.spark.deploy.yarn.Client.run(Client.scala:842)
>       at org.apache.spark.deploy.yarn.Client$.main(Client.scala:881)
>       at org.apache.spark.deploy.yarn.Client.main(Client.scala)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:606)
>       at 
> org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:665)
>       at 
> org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:170)
>       at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:193)
>       at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:112)
>       at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> it seems it's looking in the wrong place, as jar is clearly present here
> file:///home/mapr/.ivy2/jars/com.databricks_spark-csv_2.11-1.3.0.jar



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to