Search in sources :

Example 1 with DBR550Distribution

use of org.talend.hadoop.distribution.dbr550.DBR550Distribution in project tbd-studio-se by Talend.

the class DBR550DistributionTest method testDatabricksDistribution.

@Test
public void testDatabricksDistribution() throws Exception {
    HadoopComponent distribution = new DBR550Distribution();
    assertNotNull(distribution.getDistributionName());
    assertNotNull(distribution.getVersionName(null));
    assertTrue(distribution.doSupportS3());
    assertEquals(DBR550Distribution.DISTRIBUTION_NAME, distribution.getDistribution());
    assertEquals(DBR550Distribution.VERSION, distribution.getVersion());
    assertEquals(EHadoopVersion.HADOOP_2, distribution.getHadoopVersion());
    assertFalse(distribution.doSupportKerberos());
    assertTrue(distribution.doSupportUseDatanodeHostname());
    assertFalse(distribution.doSupportGroup());
    assertTrue(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_4_X));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_3));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_2));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_0));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_6));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_5));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_4));
    assertFalse(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_3));
    assertTrue(((SparkBatchComponent) distribution).doSupportDynamicMemoryAllocation());
    assertFalse(((SparkBatchComponent) distribution).isExecutedThroughSparkJobServer());
    assertTrue(((SparkBatchComponent) distribution).doSupportSparkStandaloneMode());
    assertFalse(((SparkBatchComponent) distribution).doSupportSparkYarnClientMode());
    assertFalse(((SparkBatchComponent) distribution).doSupportSparkYarnClusterMode());
    assertTrue(((SparkStreamingComponent) distribution).doSupportBackpressure());
    assertTrue(((SparkStreamingComponent) distribution).doSupportCheckpointing());
    assertTrue(distribution.doSupportCreateServiceConnection());
    assertTrue((distribution.getNecessaryServiceName() == null ? 0 : distribution.getNecessaryServiceName().size()) == 0);
    assertTrue(distribution.doSupportAzureDataLakeStorage());
}
Also used : DBR550Distribution(org.talend.hadoop.distribution.dbr550.DBR550Distribution) SparkBatchComponent(org.talend.hadoop.distribution.component.SparkBatchComponent) HadoopComponent(org.talend.hadoop.distribution.component.HadoopComponent) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 HadoopComponent (org.talend.hadoop.distribution.component.HadoopComponent)1 SparkBatchComponent (org.talend.hadoop.distribution.component.SparkBatchComponent)1 DBR550Distribution (org.talend.hadoop.distribution.dbr550.DBR550Distribution)1