public class CreateHmsClientValidationTask extends MetastoreValidationTask<String,org.apache.hadoop.hive.metastore.IMetaStoreClient>
mInputTask
Constructor and Description |
---|
CreateHmsClientValidationTask(int socketTimeout,
MetastoreValidationTask<?,String> input)
Create a new instance of
CreateHmsClientValidationTask . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the task.
|
protected Pair<ValidationTaskResult,org.apache.hadoop.hive.metastore.IMetaStoreClient> |
getValidationWithResult() |
ValidationTaskResult |
validateImpl(Map<String,String> optionMap) |
getOptionList, validate
public CreateHmsClientValidationTask(int socketTimeout, MetastoreValidationTask<?,String> input)
CreateHmsClientValidationTask
.socketTimeout
- the timeout when connecting to the metastoreinput
- the input task providing the URI(s)public String getName()
ValidationTask
public ValidationTaskResult validateImpl(Map<String,String> optionMap) throws InterruptedException
validateImpl
in class MetastoreValidationTask<String,org.apache.hadoop.hive.metastore.IMetaStoreClient>
InterruptedException
protected Pair<ValidationTaskResult,org.apache.hadoop.hive.metastore.IMetaStoreClient> getValidationWithResult() throws InterruptedException
Pair.getFirst()
will be null if the connection
to the metastore was successful, otherwise if there is a failure Pair.getSecond()
will be nullInterruptedException
- if the task is interruptedCopyright © 2023. All Rights Reserved.