Github user shivaram commented on the pull request:
https://github.com/apache/spark/pull/7599#issuecomment-129059640
@brkyvz I ran into a trouble using `sparkR` with the CSV package from the
master branch and I think this PR might be the related to the problem. If I run
`./bin/sparkR --packages com.databricks:spark-csv_2.10:1.2.0` then I get
```
Exception in thread "main" java.lang.NullPointerException
at
org.apache.spark.deploy.SparkSubmitUtils$.createRepoResolvers(SparkSubmit.scala:812)
at
org.apache.spark.deploy.SparkSubmitUtils$.resolveMavenCoordinates(SparkSubmit.scala:962)
at
org.apache.spark.deploy.SparkSubmit$.prepareSubmitEnvironment(SparkSubmit.scala:286)
at
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:153)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
```
This seems to be happening because we pass `Some(args.repositories)` in
line 287 [1] and if the argument is not given it'll be `null` ? Should this
just be `Option(args.repositories)` ?
[1]
https://github.com/apache/spark/blame/a3aec918bed22f8e33cf91dc0d6e712e6653c7d2/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L287
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]