org.apache.hcatalog.shims
Interface HCatHadoopShims
public interface HCatHadoopShims
Shim layer to abstract differences between Hadoop 0.20 and 0.23
(HCATALOG-179). This mirrors Hive shims, but is kept separate for HCatalog
dependencies.
createTaskID
TaskID createTaskID()
createTaskAttemptID
TaskAttemptID createTaskAttemptID()
createTaskAttemptContext
TaskAttemptContext createTaskAttemptContext(Configuration conf,
TaskAttemptID taskId)
createTaskAttemptContext
TaskAttemptContext createTaskAttemptContext(JobConf conf,
TaskAttemptID taskId,
Progressable progressable)
createJobContext
JobContext createJobContext(Configuration conf,
JobID jobId)
createJobContext
JobContext createJobContext(JobConf conf,
JobID jobId,
Progressable progressable)
commitJob
void commitJob(OutputFormat outputFormat,
Job job)
throws IOException
- Throws:
IOException
abortJob
void abortJob(OutputFormat outputFormat,
Job job)
throws IOException
- Throws:
IOException
getResourceManagerAddress
InetSocketAddress getResourceManagerAddress(Configuration conf)
getPropertyName
String getPropertyName(HCatHadoopShims.PropertyName name)
isFileInHDFS
boolean isFileInHDFS(FileSystem fs,
Path path)
throws IOException
- Checks if file is in HDFS filesystem.
- Parameters:
fs
- path
-
- Returns:
- true if the file is in HDFS, false if the file is in other file systems.
- Throws:
IOException