Github user xwu0226 commented on the pull request: https://github.com/apache/spark/pull/13120#issuecomment-220172124 @yhuai @liancheng I updated the code and also did some manual tests for creating table with a real hdfs path to one of my clusters. For example: ```scala> spark.sql("create table json_t3 (c1 int) using json options (path 'hdfs://bdavm009.svl.ibm.com:8020/tmp/json_t3')")``` and my hdfs environment shows ``` hdfs dfs -ls /tmp drwxrwxrwx - xwu0226 hdfs 0 2016-05-18 14:52 /tmp/json_t3 ``` Then, I create another table with the previously created data path ``` scala> spark.sql("create table json_t4 (c1 int) using json options (path 'hdfs://bdavm009.svl.ibm.com:8020/tmp/json_t3/part-r-00003-8382e0e2-8518-48df-82c8-b6c84ab03c45.json')") scala> spark.sql("select * from json_t4").show 16/05/18 14:59:50 WARN DataSource: Error while looking for metadata directory. +---+ | c1| +---+ | 1| +---+ ``` Please take a look at the change again! Thank you very much!
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org