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());
}
Aggregations