16 #ifndef IMPALA_UTIL_HDFS_UTIL_H
17 #define IMPALA_UTIL_HDFS_UTIL_H
28 std::string
GetHdfsErrorMsg(
const std::string& prefix,
const std::string& file =
"");
31 Status
GetFileSize(
const hdfsFS& connection,
const char* filename, int64_t* filesize);
36 time_t* last_mod_time);
41 Status
CopyHdfsFile(
const hdfsFS& src_conn,
const std::string& src_path,
42 const hdfsFS& dst_conn,
const std::string& dst_path);
50 #endif // IMPALA_UTIL_HDFS_UTIL_H
bool IsS3APath(const char *path)
Returns true iff the path refers to a location on an S3A filesystem.
string path("/usr/lib/sasl2:/usr/lib64/sasl2:/usr/local/lib/sasl2:/usr/lib/x86_64-linux-gnu/sasl2")
Status GetLastModificationTime(const hdfsFS &connection, const char *filename, time_t *last_mod_time)
Status CopyHdfsFile(const hdfsFS &src_conn, const string &src_path, const hdfsFS &dst_conn, const string &dst_path)
bool IsHiddenFile(const string &filename)
string GetHdfsErrorMsg(const string &prefix, const string &file)
bool IsDfsPath(const char *path)
Returns true iff the path refers to a location on an HDFS filesystem.
Status GetFileSize(const hdfsFS &connection, const char *filename, int64_t *filesize)
Return the size, in bytes, of a file from the hdfs connection.