java.lang.Object
com.actian.dataflow.cal.yarn.client.YarnClusterProvider
- All Implemented Interfaces:
ClusterProvider
Implementation of the
ClusterProvider interface that supports interacting
with a YARN-based Hadoop cluster. This is the entry point into providing the needed
services for interacting with YARN.
The cluster specifier uses the scheme yarn. The host name and port are the
address of the Dataflow Cluster Manager. The Cluster Manager is used as the gateway
into YARN. Hadoop configuration information can be bootstrapped from the Cluster
Manager and used to create initial connections into the YARN Resource Manager.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutor(FileClient fileClient, JobSpecifier spec) Create a new job executor service.Returns the default root path for this cluster provider.getJobHistoryService(FileClient fileClient, ClusterSpecifier spec) booleanReturns whether this provider is the correct provider for the given specifier.voidvalidateConnection(FileClient fileClient, ClusterSpecifier spec) Gives the provider an opportunity to validate the specifier
-
Field Details
-
PROTOCOL
- See Also:
-
-
Constructor Details
-
YarnClusterProvider
public YarnClusterProvider()
-
-
Method Details
-
isProviderFor
Description copied from interface:ClusterProviderReturns whether this provider is the correct provider for the given specifier.- Specified by:
isProviderForin interfaceClusterProvider- Parameters:
spec- the specifier- Returns:
- whether this provider knows how to handle the given specifier
-
validateConnection
Description copied from interface:ClusterProviderGives the provider an opportunity to validate the specifier- Specified by:
validateConnectionin interfaceClusterProviderspec- the specifier
-
getDefaultStorageManagementPath
Description copied from interface:ClusterProviderReturns the default root path for this cluster provider. For example, within the DR cluster, the default path is drfs://clustermanager:port.- Specified by:
getDefaultStorageManagementPathin interfaceClusterProvider- Parameters:
spec- the cluster specifier- Returns:
- the default root path
-
createExecutor
Description copied from interface:ClusterProviderCreate a new job executor service.- Specified by:
createExecutorin interfaceClusterProvider- Parameters:
fileClient- the file client to usespec- the job specifier- Returns:
- a new job executor service
-
getJobHistoryService
- Specified by:
getJobHistoryServicein interfaceClusterProvider
-