Source:
<code>public void testDatabricksDistribution() throws Exception { HadoopComponent distribution = new DatabricksDistribution(); assertNotNull(distribution.getDistributionName()); assertNotNull(distribution.getVersionName(null)); assertFalse(distribution.doSupportS3()); assertEquals(DatabricksDistribution.DISTRIBUTION_NAME, distribution.getDistribution()); assertEquals(DatabricksDistribution.VERSION, distribution.getVersion()); assertEquals(EHadoopVersion.HADOOP_2, distribution.getHadoopVersion()); assertFalse(distribution.doSupportKerberos()); assertTrue(distribution.doSupportUseDatanodeHostname()); assertFalse(distribution.doSupportGroup()); assertTrue(((HDFSComponent) distribution).doSupportSequenceFileShortType()); <START> assertTrue(((SparkBatchComponent) distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_2)); <END> 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()); assertFalse(((SparkBatchComponent) distribution).doSupportSparkStandaloneMode()); assertFalse(((SparkBatchComponent) distribution).doSupportSparkYarnClientMode()); assertTrue(distribution.doSupportCreateServiceConnection()); assertTrue((distribution.getNecessaryServiceName() == null ? 0 : distribution.getNecessaryServiceName().size()) == 0); }</code><technical_language>Databricks contains SPARK_2_2_1 SPARK_2_2</technical_language>

Target:
public void testDatabricksDistribution() throws Exception { HadoopComponent distribution = new DatabricksDistribution(); assertNotNull(distribution.getDistributionName()); assertNotNull(distribution.getVersionName(null)); assertFalse(distribution.doSupportS3()); assertEquals(DatabricksDistribution.DISTRIBUTION_NAME, distribution.getDistribution()); assertEquals(DatabricksDistribution.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_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()); assertFalse(((SparkBatchComponent) distribution).doSupportSparkStandaloneMode()); assertFalse(((SparkBatchComponent) distribution).doSupportSparkYarnClientMode()); assertTrue(distribution.doSupportCreateServiceConnection()); assertTrue((distribution.getNecessaryServiceName() == null ? 0 : distribution.getNecessaryServiceName().size()) == 0); }