Constructor and Description |
---|
HdfsUploader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is to for disposing or cleaning up any internal state accumulated by the uploader
|
protected HdfsController |
getHdfsController() |
void |
initialize(Config ipconfig,
java.lang.String jobID)
Initialize the uploader with the incoming context.
|
protected boolean |
isLocalFileExists(java.lang.String file) |
boolean |
undo()
Undo uploading.
|
java.net.URI |
uploadPackage(java.lang.String sourceLocation)
UploadPackage will upload the job package to the given location.
|
public void initialize(Config ipconfig, java.lang.String jobID)
IUploader
initialize
in interface IUploader
protected HdfsController getHdfsController()
protected boolean isLocalFileExists(java.lang.String file)
public java.net.URI uploadPackage(java.lang.String sourceLocation) throws UploaderException
IUploader
uploadPackage
in interface IUploader
sourceLocation
- the source location with all the filesnull
if failed.UploaderException
public boolean undo()
IUploader