Repository: spark Updated Branches: refs/heads/master adcb7d335 -> 23f6171d6
[SPARK-3985] [Examples] fix file path using os.path.join Author: Daoyuan Wang <[email protected]> Closes #2834 from adrian-wang/sqlpypath and squashes the following commits: da7aa95 [Daoyuan Wang] fix file path using path.join Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/23f6171d Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/23f6171d Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/23f6171d Branch: refs/heads/master Commit: 23f6171d633d4347ca4aa8ec7cb7bd57342b21b5 Parents: adcb7d3 Author: Daoyuan Wang <[email protected]> Authored: Fri Oct 17 14:49:44 2014 -0700 Committer: Josh Rosen <[email protected]> Committed: Fri Oct 17 14:49:44 2014 -0700 ---------------------------------------------------------------------- examples/src/main/python/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/23f6171d/examples/src/main/python/sql.py ---------------------------------------------------------------------- diff --git a/examples/src/main/python/sql.py b/examples/src/main/python/sql.py index eefa022..d2c5ca4 100644 --- a/examples/src/main/python/sql.py +++ b/examples/src/main/python/sql.py @@ -48,7 +48,7 @@ if __name__ == "__main__": # A JSON dataset is pointed to by path. # The path can be either a single text file or a directory storing text files. - path = os.environ['SPARK_HOME'] + "examples/src/main/resources/people.json" + path = os.path.join(os.environ['SPARK_HOME'], "examples/src/main/resources/people.json") # Create a SchemaRDD from the file(s) pointed to by path people = sqlContext.jsonFile(path) # root --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
