- java.lang.Object
-
- com.actian.dataflow.cal.yarn.client.YarnClusterProvider
-
- All Implemented Interfaces:
ClusterProvider
public class YarnClusterProvider extends Object implements ClusterProvider
Implementation of theClusterProvider 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.
-
-
Constructor Summary
Constructors Constructor Description YarnClusterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobExecutorServicecreateExecutor(FileClient fileClient, JobSpecifier spec)Create a new job executor service.StringgetDefaultStorageManagementPath(ClusterSpecifier spec)Returns the default root path for this cluster provider.JobHistoryServicegetJobHistoryService(FileClient fileClient, ClusterSpecifier spec)booleanisProviderFor(ClusterSpecifier spec)Returns 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 Detail
-
PROTOCOL
public static final String PROTOCOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isProviderFor
public boolean isProviderFor(ClusterSpecifier spec)
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
public void validateConnection(FileClient fileClient, ClusterSpecifier spec)
Description copied from interface:ClusterProviderGives the provider an opportunity to validate the specifier- Specified by:
validateConnectionin interfaceClusterProviderspec- the specifier
-
getDefaultStorageManagementPath
public String getDefaultStorageManagementPath(ClusterSpecifier spec)
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
public JobExecutorService createExecutor(FileClient fileClient, JobSpecifier spec)
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
public JobHistoryService getJobHistoryService(FileClient fileClient, ClusterSpecifier spec)
- Specified by:
getJobHistoryServicein interfaceClusterProvider
-
-