public class HadoopServiceImpl
extends eu.dnetlib.enabling.tools.AbstractBaseService
implements eu.dnetlib.data.hadoop.rmi.HadoopService
| Constructor and Description |
|---|
HadoopServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHBaseColumn(String clusterName,
String tableName,
String rowKey,
String columnFamily,
String qualifier,
String value) |
boolean |
createConfiguredHbaseTable(String clusterName,
String tableName,
String tableConfiguration) |
boolean |
createHbaseTable(String clusterName,
String tableName,
Set<String> columns) |
boolean |
createHdfsDirectory(String clusterName,
String path,
boolean force) |
boolean |
deleteHBaseColumn(String clusterName,
String tableName,
eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor column) |
boolean |
deleteHBaseColumns(String clusterName,
String tableName,
List<eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> column) |
boolean |
deleteHdfsPath(String clusterName,
String path) |
eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor |
describeHBaseColumn(String clusterName,
String tableName,
String rowKey) |
Map<String,eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> |
describeHBaseColumns(String clusterName,
String tableName,
List<String> rowKeys) |
List<String> |
describeHbaseTable(String clusterName,
String tableName) |
String |
describeHBaseTableConfiguration(String clusterName,
String tableName) |
boolean |
dropHbaseTable(String clusterName,
String tableName) |
boolean |
ensureHbaseTable(String clusterName,
String tableName,
Set<String> columns) |
boolean |
existHbaseTable(String clusterName,
String tableName) |
boolean |
existHdfsPath(String clusterName,
String path) |
Map<String,String> |
getClusterConfiguration(String clusterName) |
eu.dnetlib.enabling.tools.blackboard.NotificationHandler |
getNotificationHandler()
Gets the notification handler.
|
boolean |
killJob(String jobId) |
List<String> |
listAvailableJobs() |
List<String> |
listClusters() |
List<String> |
listHbaseTables(String clusterName) |
List<eu.dnetlib.data.hadoop.rmi.HadoopJobDescriptor> |
listJobs(String clusterName) |
void |
notify(String subscriptionId,
String topic,
String isId,
String message) |
void |
setNotificationHandler(eu.dnetlib.enabling.tools.blackboard.NotificationHandler notificationHandler)
Sets the notification handler.
|
boolean |
truncateHbaseTable(String clusterName,
String tableName) |
identify, isRunning, start, stoppublic List<String> listAvailableJobs() throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
listAvailableJobs in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic List<eu.dnetlib.data.hadoop.rmi.HadoopJobDescriptor> listJobs(String clusterName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
listJobs in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean killJob(String jobId) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
killJob in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void notify(String subscriptionId, String topic, String isId, String message)
notify in interface eu.dnetlib.common.rmi.BaseServicenotify in class eu.dnetlib.enabling.tools.AbstractBaseServicepublic List<String> listHbaseTables(String clusterName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
listHbaseTables in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean ensureHbaseTable(String clusterName, String tableName, Set<String> columns) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
ensureHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean createHbaseTable(String clusterName, String tableName, Set<String> columns) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
createHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean createConfiguredHbaseTable(String clusterName, String tableName, String tableConfiguration) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
createConfiguredHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean truncateHbaseTable(String clusterName, String tableName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
truncateHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean dropHbaseTable(String clusterName, String tableName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
dropHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean existHbaseTable(String clusterName, String tableName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
existHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic Map<String,String> getClusterConfiguration(String clusterName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
getClusterConfiguration in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean deleteHdfsPath(String clusterName, String path) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
deleteHdfsPath in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean existHdfsPath(String clusterName, String path) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
existHdfsPath in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean createHdfsDirectory(String clusterName, String path, boolean force) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
createHdfsDirectory in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic List<String> listClusters() throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
listClusters in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic List<String> describeHbaseTable(String clusterName, String tableName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
describeHbaseTable in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor describeHBaseColumn(String clusterName, String tableName, String rowKey) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
describeHBaseColumn in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic Map<String,eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> describeHBaseColumns(String clusterName, String tableName, List<String> rowKeys) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
describeHBaseColumns in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic String describeHBaseTableConfiguration(String clusterName, String tableName) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
describeHBaseTableConfiguration in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean deleteHBaseColumn(String clusterName, String tableName, eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor column) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
deleteHBaseColumn in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic boolean deleteHBaseColumns(String clusterName, String tableName, List<eu.dnetlib.data.hadoop.rmi.hbase.HBaseRowDescriptor> column) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
deleteHBaseColumns in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic void addHBaseColumn(String clusterName, String tableName, String rowKey, String columnFamily, String qualifier, String value) throws eu.dnetlib.data.hadoop.rmi.HadoopServiceException
addHBaseColumn in interface eu.dnetlib.data.hadoop.rmi.HadoopServiceeu.dnetlib.data.hadoop.rmi.HadoopServiceExceptionpublic eu.dnetlib.enabling.tools.blackboard.NotificationHandler getNotificationHandler()
public void setNotificationHandler(eu.dnetlib.enabling.tools.blackboard.NotificationHandler notificationHandler)
notificationHandler - the new notification handlerCopyright © 2021. All rights reserved.