Search in sources :

Example 6 with SqoopComponent

use of org.talend.hadoop.distribution.component.SqoopComponent in project tbd-studio-se by Talend.

the class AbstractDynamicHDPDistributionTemplate method buildModuleGroupsTemplateMap.

@Override
protected Map<ComponentType, IDynamicModuleGroupTemplate> buildModuleGroupsTemplateMap() {
    Map<ComponentType, IDynamicModuleGroupTemplate> groupTemplateMap = super.buildModuleGroupsTemplateMap();
    DynamicPluginAdapter pluginAdapter = getPluginAdapter();
    if (this instanceof HDFSComponent) {
        groupTemplateMap.put(ComponentType.HDFS, new DynamicHDPHDFSModuleGroupTemplate(pluginAdapter));
    }
    if (this instanceof MRComponent) {
        groupTemplateMap.put(ComponentType.MAPREDUCE, new DynamicHDPMapReduceModuleGroupTemplate(pluginAdapter));
    }
    if (this instanceof SparkBatchComponent) {
        groupTemplateMap.put(ComponentType.SPARKBATCH, new DynamicHDPSparkBatchModuleGroupTemplate(pluginAdapter));
    }
    if (this instanceof SparkStreamingComponent) {
        groupTemplateMap.put(ComponentType.SPARKSTREAMING, new DynamicHDPSparkStreamingModuleGroupTemplate(pluginAdapter));
    }
    if (this instanceof HiveOnSparkComponent) {
        groupTemplateMap.put(ComponentType.HIVEONSPARK, new DynamicHDPHiveOnSparkModuleGroupTemplate(pluginAdapter));
    }
    if (this instanceof SqoopComponent) {
        groupTemplateMap.put(ComponentType.SQOOP, new DynamicHDPSqoopModuleGroupTemplate(pluginAdapter));
    }
    return groupTemplateMap;
}
Also used : ComponentType(org.talend.hadoop.distribution.ComponentType) DynamicPluginAdapter(org.talend.hadoop.distribution.dynamic.adapter.DynamicPluginAdapter) HiveOnSparkComponent(org.talend.hadoop.distribution.component.HiveOnSparkComponent) MRComponent(org.talend.hadoop.distribution.component.MRComponent) SparkBatchComponent(org.talend.hadoop.distribution.component.SparkBatchComponent) HDFSComponent(org.talend.hadoop.distribution.component.HDFSComponent) IDynamicModuleGroupTemplate(org.talend.hadoop.distribution.dynamic.template.IDynamicModuleGroupTemplate) SparkStreamingComponent(org.talend.hadoop.distribution.component.SparkStreamingComponent) SqoopComponent(org.talend.hadoop.distribution.component.SqoopComponent)

Example 7 with SqoopComponent

use of org.talend.hadoop.distribution.component.SqoopComponent 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());
}
Also used : ImpalaComponent(org.talend.hadoop.distribution.component.ImpalaComponent) SynapseDistribution(org.talend.hadoop.distribution.synapse.SynapseDistribution) HadoopComponent(org.talend.hadoop.distribution.component.HadoopComponent) HCatalogComponent(org.talend.hadoop.distribution.component.HCatalogComponent) SqoopComponent(org.talend.hadoop.distribution.component.SqoopComponent) HBaseComponent(org.talend.hadoop.distribution.component.HBaseComponent) Test(org.junit.Test)

Aggregations

SqoopComponent (org.talend.hadoop.distribution.component.SqoopComponent)7 ImpalaComponent (org.talend.hadoop.distribution.component.ImpalaComponent)6 SparkBatchComponent (org.talend.hadoop.distribution.component.SparkBatchComponent)5 SparkStreamingComponent (org.talend.hadoop.distribution.component.SparkStreamingComponent)5 ComponentType (org.talend.hadoop.distribution.ComponentType)4 HBaseComponent (org.talend.hadoop.distribution.component.HBaseComponent)4 HCatalogComponent (org.talend.hadoop.distribution.component.HCatalogComponent)4 HiveOnSparkComponent (org.talend.hadoop.distribution.component.HiveOnSparkComponent)4 DynamicPluginAdapter (org.talend.hadoop.distribution.dynamic.adapter.DynamicPluginAdapter)4 Test (org.junit.Test)3 HDFSComponent (org.talend.hadoop.distribution.component.HDFSComponent)3 HadoopComponent (org.talend.hadoop.distribution.component.HadoopComponent)3 MRComponent (org.talend.hadoop.distribution.component.MRComponent)3 IDynamicModuleGroupTemplate (org.talend.hadoop.distribution.dynamic.template.IDynamicModuleGroupTemplate)3 DynamicImpalaModuleGroupTemplate (org.talend.hadoop.distribution.dynamic.template.DynamicImpalaModuleGroupTemplate)2 HashMap (java.util.HashMap)1 HiveComponent (org.talend.hadoop.distribution.component.HiveComponent)1 MapRDBComponent (org.talend.hadoop.distribution.component.MapRDBComponent)1 EMR5290Distribution (org.talend.hadoop.distribution.emr5290.EMR5290Distribution)1 HDInsight40Distribution (org.talend.hadoop.distribution.hdinsight400.HDInsight40Distribution)1