use of org.talend.hadoop.distribution.component.ImpalaComponent in project tbd-studio-se by Talend.
the class AbstractDynamicCDPDistributionTemplate method buildModuleGroupsTemplateMap.
@Override
protected Map<ComponentType, IDynamicModuleGroupTemplate> buildModuleGroupsTemplateMap() {
Map<ComponentType, IDynamicModuleGroupTemplate> groupTemplateMap = super.buildModuleGroupsTemplateMap();
DynamicPluginAdapter pluginAdapter = getPluginAdapter();
if (this instanceof HiveOnSparkComponent) {
groupTemplateMap.put(ComponentType.HIVEONSPARK, new DynamicCDPHiveOnSparkModuleGroupTemplate(pluginAdapter));
}
if (this instanceof SparkBatchComponent) {
groupTemplateMap.put(ComponentType.SPARKBATCH, new DynamicCDPSparkBatchModuleGroupTemplate(pluginAdapter));
}
if (this instanceof SparkStreamingComponent) {
groupTemplateMap.put(ComponentType.SPARKSTREAMING, new DynamicCDPSparkStreamingModuleGroupTemplate(pluginAdapter));
}
if (this instanceof SqoopComponent) {
groupTemplateMap.put(ComponentType.SQOOP, new DynamicCDPSqoopModuleGroupTemplate(pluginAdapter));
}
if (this instanceof ImpalaComponent) {
groupTemplateMap.put(ComponentType.IMPALA, new DynamicImpalaModuleGroupTemplate(pluginAdapter));
}
return groupTemplateMap;
}
use of org.talend.hadoop.distribution.component.ImpalaComponent in project tbd-studio-se by Talend.
the class SynapseDistributionTest method testSynapseDistribution.
@Test
public void testSynapseDistribution() throws Exception {
HadoopComponent distribution = new SynapseDistribution();
assertNotNull(distribution.getDistributionName());
assertNotNull(distribution.getVersionName(null));
assertFalse(distribution.doSupportS3());
assertEquals(SynapseDistribution.DISTRIBUTION_NAME, distribution.getDistribution());
assertEquals(SynapseDistribution.VERSION, distribution.getVersion());
assertEquals(EHadoopVersion.HADOOP_3, distribution.getHadoopVersion());
assertFalse(distribution.doSupportKerberos());
assertTrue(distribution.doSupportUseDatanodeHostname());
assertFalse(distribution.doSupportGroup());
assertFalse(distribution.doSupportOldImportMode());
assertFalse(((MRComponent) distribution).isExecutedThroughWebHCat());
assertFalse(((MRComponent) distribution).doSupportCrossPlatformSubmission());
assertFalse(((MRComponent) distribution).doSupportImpersonation());
assertEquals(((MRComponent) distribution).getYarnApplicationClasspath(), YARN_APPLICATION_CLASSPATH);
assertFalse(distribution instanceof HBaseComponent);
assertFalse(distribution instanceof SqoopComponent);
assertFalse(distribution instanceof HCatalogComponent);
assertFalse(distribution instanceof ImpalaComponent);
assertTrue(distribution.doSupportAzureDataLakeStorageGen2());
assertTrue(distribution.doSupportWebHDFS());
}
Aggregations