Search in sources :

Example 1 with EMR5290Distribution

use of org.talend.hadoop.distribution.emr5290.EMR5290Distribution in project tbd-studio-se by Talend.

the class EMR5290DistributionTest method testEMR5290Distribution.

@Test
public void testEMR5290Distribution() throws Exception {
    HadoopComponent distribution = new EMR5290Distribution();
    assertNotNull(distribution.getDistributionName());
    assertNotNull(distribution.getVersionName(null));
    assertTrue(distribution.doSupportS3());
    assertEquals(EMR5290Distribution.DISTRIBUTION_NAME, distribution.getDistribution());
    assertEquals(EMR5290Distribution.VERSION, distribution.getVersion());
    assertEquals(EHadoopVersion.HADOOP_2, distribution.getHadoopVersion());
    assertTrue(distribution.doSupportKerberos());
    assertTrue(distribution.doSupportUseDatanodeHostname());
    assertFalse(distribution.doSupportGroup());
    assertFalse(distribution.doSupportOldImportMode());
    assertTrue(((HDFSComponent) distribution).doSupportSequenceFileShortType());
    assertFalse(((MRComponent) distribution).isExecutedThroughWebHCat());
    assertTrue(((MRComponent) distribution).doSupportCrossPlatformSubmission());
    assertTrue(((MRComponent) distribution).doSupportImpersonation());
    assertEquals(((MRComponent) distribution).getYarnApplicationClasspath(), DEFAULT_YARN_APPLICATION_CLASSPATH);
    assertTrue(distribution instanceof HBaseComponent);
    assertTrue(distribution instanceof SqoopComponent);
    assertFalse(((HiveComponent) distribution).doSupportEmbeddedMode());
    assertTrue(((HiveComponent) distribution).doSupportStandaloneMode());
    assertFalse(((HiveComponent) distribution).doSupportHive1());
    assertTrue(((HiveComponent) distribution).doSupportHive2());
    assertFalse(((HiveComponent) distribution).doSupportTezForHive());
    assertFalse(((HiveComponent) distribution).doSupportHBaseForHive());
    assertTrue(((HiveComponent) distribution).doSupportSSL());
    assertTrue(((HiveComponent) distribution).doSupportORCFormat());
    assertTrue(((HiveComponent) distribution).doSupportAvroFormat());
    assertTrue(((HiveComponent) distribution).doSupportParquetFormat());
    assertTrue(((HiveComponent) distribution).doSupportStoreAsParquet());
    assertFalse(((HiveComponent) distribution).doSupportClouderaNavigator());
    assertTrue(distribution instanceof HCatalogComponent);
    assertFalse(distribution instanceof ImpalaComponent);
    assertTrue(((SqoopComponent) distribution).doJavaAPISqoopImportAllTablesSupportExcludeTable());
    assertTrue(((SqoopComponent) distribution).doJavaAPISqoopImportSupportDeleteTargetDir());
    assertTrue(((SqoopComponent) distribution).doJavaAPISupportStorePasswordInFile());
    assertTrue(((HBaseComponent) distribution).doSupportNewHBaseAPI());
    assertFalse(distribution.doSupportAzureDataLakeStorage());
    assertTrue(distribution.doSupportWebHDFS());
}
Also used : ImpalaComponent(org.talend.hadoop.distribution.component.ImpalaComponent) HadoopComponent(org.talend.hadoop.distribution.component.HadoopComponent) EMR5290Distribution(org.talend.hadoop.distribution.emr5290.EMR5290Distribution) 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 EMR5290Distribution (org.talend.hadoop.distribution.emr5290.EMR5290Distribution)1