public final class TaskOutputStreamProviderHDFS extends TaskOutputStreamProvider
TaskOutputStreamProvider
.
It provides FileOutputStreams on HDFS.Modifier and Type | Method and Description |
---|---|
void |
close()
release resources.
|
DataOutputStream |
create(String name)
create a file output stream using the given name.
|
public DataOutputStream create(String name) throws IOException
name
- name of the created output stream
It is used as the name of the directory if the created output stream is a file output streamIOException
public void close() throws IOException
OutputStreamProvider
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.