MCPcopy Create free account
hub / github.com/apache/impala / CopyHdfsFile

Function CopyHdfsFile

be/src/util/hdfs-util.cc:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Status CopyHdfsFile(const hdfsFS& src_conn, const string& src_path,
83 const hdfsFS& dst_conn, const string& dst_path) {
84 int error = hdfsCopy(src_conn, src_path.c_str(), dst_conn, dst_path.c_str());
85 if (error != 0) {
86 string error_msg = GetHdfsErrorMsg("");
87 stringstream ss;
88 ss << "Failed to copy " << src_path << " to " << dst_path << ": " << error_msg;
89 return Status(ss.str());
90 }
91 return Status::OK();
92}
93
94static bool IsSpecificPath(
95 const char* path, const char* specific_prefix, bool check_default_fs) {

Callers 2

LoadZoneInfoFromHdfsMethod · 0.85
LoadCacheEntryMethod · 0.85

Calls 4

GetHdfsErrorMsgFunction · 0.85
OKFunction · 0.85
StatusClass · 0.70
strMethod · 0.45

Tested by

no test coverage detected