@InterfaceAudience.Public public class DataSinkDescriptor extends Object
Constructor and Description |
---|
DataSinkDescriptor(OutputDescriptor outputDescriptor,
OutputCommitterDescriptor committerDescriptor,
org.apache.hadoop.security.Credentials credentials)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DataSinkDescriptor |
addURIsForCredentials(Collection<URI> uris)
This method can be used to specify a list of URIs for which Credentials
need to be obtained so that the job can run.
|
static DataSinkDescriptor |
create(OutputDescriptor outputDescriptor,
OutputCommitterDescriptor committerDescriptor,
org.apache.hadoop.security.Credentials credentials)
Create a
DataSinkDescriptor |
org.apache.hadoop.security.Credentials |
getCredentials()
Get the
Credentials for this DataSinkDescriptor |
OutputCommitterDescriptor |
getOutputCommitterDescriptor()
Get the
OutputCommitterDescriptor for this DataSinkDescriptor |
OutputDescriptor |
getOutputDescriptor()
Get the
OutputDescriptor for this DataSinkDescriptor |
Collection<URI> |
getURIsForCredentials()
Get the URIs for which credentials will be obtained
|
@Deprecated public DataSinkDescriptor(OutputDescriptor outputDescriptor, @Nullable OutputCommitterDescriptor committerDescriptor, @Nullable org.apache.hadoop.security.Credentials credentials)
DataSinkDescriptor
outputDescriptor
- An OutputDescriptor
for the outputcommitterDescriptor
- Specify a committer to be used for the output. Can be null. After all
tasks in the vertex (or in the DAG) have completed, the committer
(if specified) is invoked to commit the outputs. Commit is a data
sink specific operation that usually determines the visibility of
the output to external observers. E.g. moving output files from
temporary dirs to the real output dir. When there are multiple
executions of a task, the commit process also helps decide which
execution will be included in the final output. Users should
consider whether their application or data sink need a commit
operation.credentials
- Credentials needs to access the data sinkpublic static DataSinkDescriptor create(OutputDescriptor outputDescriptor, @Nullable OutputCommitterDescriptor committerDescriptor, @Nullable org.apache.hadoop.security.Credentials credentials)
DataSinkDescriptor
outputDescriptor
- An OutputDescriptor
for the outputcommitterDescriptor
- Specify a committer to be used for the output. Can be null. After all
tasks in the vertex (or in the DAG) have completed, the committer
(if specified) is invoked to commit the outputs. Commit is a data
sink specific operation that usually determines the visibility of
the output to external observers. E.g. moving output files from
temporary dirs to the real output dir. When there are multiple
executions of a task, the commit process also helps decide which
execution will be included in the final output. Users should
consider whether their application or data sink need a commit
operation.credentials
- Credentials needs to access the data sinkpublic OutputDescriptor getOutputDescriptor()
OutputDescriptor
for this DataSinkDescriptor
OutputDescriptor
@Nullable public OutputCommitterDescriptor getOutputCommitterDescriptor()
OutputCommitterDescriptor
for this DataSinkDescriptor
OutputCommitterDescriptor
public DataSinkDescriptor addURIsForCredentials(Collection<URI> uris)
FileSystem
implementations that support
credentials.uris
- a list of URI
spublic Collection<URI> getURIsForCredentials()
@Nullable public org.apache.hadoop.security.Credentials getCredentials()
Credentials
for this DataSinkDescriptor
Credentials
Copyright © 2015 Apache Software Foundation. All rights reserved.