Search in sources :

Example 1 with SynapseDistribution

use of org.talend.hadoop.distribution.synapse.SynapseDistribution 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

Test (org.junit.Test)1 HBaseComponent (org.talend.hadoop.distribution.component.HBaseComponent)1 HCatalogComponent (org.talend.hadoop.distribution.component.HCatalogComponent)1 HadoopComponent (org.talend.hadoop.distribution.component.HadoopComponent)1 ImpalaComponent (org.talend.hadoop.distribution.component.ImpalaComponent)1 SqoopComponent (org.talend.hadoop.distribution.component.SqoopComponent)1 SynapseDistribution (org.talend.hadoop.distribution.synapse.SynapseDistribution)1