GitHub user jerryshao opened a pull request:
https://github.com/apache/spark/pull/13405
[SPARK-15659][SQL] Ensure FileSystem is gotten from path
## What changes were proposed in this pull request?
Currently `spark.sql.warehouse.dir` is pointed to local dir by default,
which will throw exception when HADOOP_CONF_DIR is configured and default FS is
hdfs.
```
java.lang.IllegalArgumentException: Wrong FS:
file:/Users/sshao/projects/apache-spark/spark-warehouse, expected:
hdfs://localhost:8020
```
So we should always get the `FileSystem` from `Path` to avoid wrong FS
problem.
## How was this patch tested?
Local test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jerryshao/apache-spark SPARK-15659
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13405.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13405
----
commit 7e01426f98dd8f5f68a1cb6d3fa8a5d47686ac0b
Author: jerryshao <[email protected]>
Date: 2016-05-31T05:58:29Z
Ensure FileSystem is gotten from path to avoid default FileSystem conflicts
----
---
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]