diff options
author | 2016-11-02 17:57:50 -0800 | |
---|---|---|
committer | 2016-11-02 19:12:29 -0700 | |
commit | 9113b25790bfc4e2da1876a78d74382f776bf02a (patch) | |
tree | f7cf347a24bb7db02c62c1813a172846e0450a4b /tensorflow/core/platform/hadoop | |
parent | 7117b4f5b0bbd1d27506ae59f8abfa132be20f42 (diff) |
Change path functions to operate on URIs rather than paths.
- Move the URI parsing and creation functions to path.h so that we don't
depend on core/platform from core/lib/io.
- Fixes https://github.com/tensorflow/tensorflow/issues/5316
Change: 138023841
Diffstat (limited to 'tensorflow/core/platform/hadoop')
-rw-r--r-- | tensorflow/core/platform/hadoop/hadoop_file_system.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/platform/hadoop/hadoop_file_system.cc b/tensorflow/core/platform/hadoop/hadoop_file_system.cc index d5792e82cd..749d9e1fcd 100644 --- a/tensorflow/core/platform/hadoop/hadoop_file_system.cc +++ b/tensorflow/core/platform/hadoop/hadoop_file_system.cc @@ -126,7 +126,7 @@ Status HadoopFileSystem::Connect(StringPiece fname, hdfsFS* fs) { TF_RETURN_IF_ERROR(hdfs_->status()); StringPiece scheme, namenode, path; - ParseURI(fname, &scheme, &namenode, &path); + io::ParseURI(fname, &scheme, &namenode, &path); const string nn = namenode.ToString(); hdfsBuilder* builder = hdfs_->hdfsNewBuilder(); @@ -144,7 +144,7 @@ Status HadoopFileSystem::Connect(StringPiece fname, hdfsFS* fs) { string HadoopFileSystem::TranslateName(const string& name) const { StringPiece scheme, namenode, path; - ParseURI(name, &scheme, &namenode, &path); + io::ParseURI(name, &scheme, &namenode, &path); return path.ToString(); } |