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