use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.
the class DataDiscoveryServiceCloudStorageRoleConfigProviderTest method getDataDiscoveryServiceFileSystemUri.
private StorageLocation getDataDiscoveryServiceFileSystemUri() {
StorageLocation dataDiscoveryServiceFileSystemUri = new StorageLocation();
dataDiscoveryServiceFileSystemUri.setProperty("file_system_uri");
dataDiscoveryServiceFileSystemUri.setValue("s3a://bucket/dpprofiler");
return dataDiscoveryServiceFileSystemUri;
}
use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.
the class ImpalaCloudStorageServiceConfigProviderTest method getHiveWarehouseExternalStorageLocation.
private StorageLocation getHiveWarehouseExternalStorageLocation() {
StorageLocation external = new StorageLocation();
external.setProperty("hive.metastore.warehouse.external.dir");
external.setValue("s3a://bucket/warehouse/tablespace/external/hive");
return external;
}
use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.
the class ImpalaCloudStorageServiceConfigProviderTest method getHiveWarehouseStorageLocation.
private StorageLocation getHiveWarehouseStorageLocation() {
StorageLocation managed = new StorageLocation();
managed.setProperty("hive.metastore.warehouse.dir");
managed.setValue("s3a://bucket/warehouse/tablespace/managed/hive");
return managed;
}
use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.
the class SparkOnYarnRoleConfigProviderTest method getTemplatePreparationObject.
private TemplatePreparationObject getTemplatePreparationObject(String... locations) {
HostgroupView master = new HostgroupView("master", 1, InstanceGroupType.GATEWAY, 1);
HostgroupView worker = new HostgroupView("worker", 2, InstanceGroupType.CORE, 2);
List<StorageLocationView> storageLocations = new ArrayList<>();
if (locations.length >= 1) {
StorageLocation hmsExternalWarehouseDir = new StorageLocation();
hmsExternalWarehouseDir.setProperty("hive.metastore.warehouse.external.dir");
hmsExternalWarehouseDir.setValue(locations[0]);
storageLocations.add(new StorageLocationView(hmsExternalWarehouseDir));
}
S3FileSystemConfigurationsView fileSystemConfigurationsView = new S3FileSystemConfigurationsView(new S3FileSystem(), storageLocations, false);
return Builder.builder().withFileSystemConfigurationView(fileSystemConfigurationsView).withHostgroupViews(Set.of(master, worker)).build();
}
use of com.sequenceiq.cloudbreak.domain.StorageLocation in project cloudbreak by hortonworks.
the class YarnCloudStorageRoleConfigProviderTest method getYarnRemoteAppLogDir.
protected StorageLocation getYarnRemoteAppLogDir() {
StorageLocation yarnRemoteAppLogDir = new StorageLocation();
yarnRemoteAppLogDir.setProperty("yarn.nodemanager.remote-app-log-dir");
yarnRemoteAppLogDir.setValue("s3a://bucket/yarn/logs");
return yarnRemoteAppLogDir;
}
Aggregations