use of org.talend.designer.hdfsbrowse.hadoop.service.check.CheckHadoopServicesDialog in project tbd-studio-se by Talend.
the class KnoxInfoForm method checkServices.
private void checkServices() {
Map<EHadoopServiceType, HadoopServiceProperties> serviceTypeToProperties = new HashMap<EHadoopServiceType, HadoopServiceProperties>();
HadoopServiceProperties nnProperties = new HadoopServiceProperties();
initCommonProperties(nnProperties);
nnProperties.setKnoxURL(knoxURLText.getText());
nnProperties.setKnoxUser(knoxUserText.getText());
nnProperties.setKnoxPassword(knoxPasswordText.getText());
nnProperties.setKnoxDirectory(knoxDirectoryText.getText());
serviceTypeToProperties.put(EHadoopServiceType.KNOX_RESOURCE_MANAGER, nnProperties);
serviceTypeToProperties.put(EHadoopServiceType.KNOX_NAMENODE, nnProperties);
new CheckHadoopServicesDialog(getShell(), serviceTypeToProperties).open();
}
use of org.talend.designer.hdfsbrowse.hadoop.service.check.CheckHadoopServicesDialog in project tbd-studio-se by Talend.
the class GoogleDataprocInfoForm method checkServices.
private void checkServices() {
Map<EHadoopServiceType, HadoopServiceProperties> serviceTypeToProperties = new HashMap<EHadoopServiceType, HadoopServiceProperties>();
HadoopServiceProperties nnProperties = new HadoopServiceProperties();
initCommonProperties(nnProperties);
nnProperties.setProjectId(projectIdNameText.getText());
nnProperties.setRegion(regionNameText.getText());
nnProperties.setClusterName(clusterIdNameText.getText());
serviceTypeToProperties.put(EHadoopServiceType.GOOGLE_DATAPROC, nnProperties);
new CheckHadoopServicesDialog(getShell(), serviceTypeToProperties).open();
}
use of org.talend.designer.hdfsbrowse.hadoop.service.check.CheckHadoopServicesDialog in project tbd-studio-se by Talend.
the class StandardHCInfoForm method checkServices.
private void checkServices() {
Map<EHadoopServiceType, HadoopServiceProperties> serviceTypeToProperties = new HashMap<EHadoopServiceType, HadoopServiceProperties>();
HadoopServiceProperties nnProperties = new HadoopServiceProperties();
initCommonProperties(nnProperties);
nnProperties.setNameNode(getConnection().getNameNodeURI());
serviceTypeToProperties.put(EHadoopServiceType.NAMENODE, nnProperties);
HadoopServiceProperties rmORjtProperties = new HadoopServiceProperties();
initCommonProperties(rmORjtProperties);
if (getConnection().isUseYarn()) {
rmORjtProperties.setResourceManager(getConnection().getJobTrackerURI());
serviceTypeToProperties.put(EHadoopServiceType.RESOURCE_MANAGER, rmORjtProperties);
} else {
rmORjtProperties.setJobTracker(getConnection().getJobTrackerURI());
serviceTypeToProperties.put(EHadoopServiceType.JOBTRACKER, rmORjtProperties);
}
if (getConnection().isUseCustomVersion()) {
// $NON-NLS-1$
nnProperties.setUid(connectionItem.getProperty().getId() + ":" + ECustomVersionGroup.COMMON.getName());
nnProperties.setCustomJars(HCVersionUtil.getCustomVersionMap(getConnection()).get(ECustomVersionGroup.COMMON.getName()));
// $NON-NLS-1$
rmORjtProperties.setUid(connectionItem.getProperty().getId() + ":" + ECustomVersionGroup.MAP_REDUCE.getName());
rmORjtProperties.setCustomJars(HCVersionUtil.getCustomVersionMap(getConnection()).get(ECustomVersionGroup.MAP_REDUCE.getName()));
}
new CheckHadoopServicesDialog(getShell(), filterTypes(serviceTypeToProperties)).open();
}
Aggregations