Search in sources :

Example 1 with HDFSDockerService

use of io.pravega.test.system.framework.services.docker.HDFSDockerService in project pravega by pravega.

the class Utils method createPravegaSegmentStoreService.

public static Service createPravegaSegmentStoreService(final URI zkUri, final URI contUri) {
    URI hdfsUri = null;
    if (DOCKER_BASED) {
        Service hdfsService = new HDFSDockerService("hdfs");
        if (!hdfsService.isRunning()) {
            hdfsService.start(true);
        }
        hdfsUri = hdfsService.getServiceDetails().get(0);
    }
    String serviceId = "segmentstore";
    switch(EXECUTOR_TYPE) {
        case REMOTE_SEQUENTIAL:
            return new PravegaSegmentStoreService(serviceId, zkUri, contUri);
        case DOCKER:
            return new PravegaSegmentStoreDockerService(serviceId, zkUri, hdfsUri, contUri);
        case KUBERNETES:
        default:
            return new PravegaSegmentStoreK8sService(serviceId, zkUri, getPravegaProperties());
    }
}
Also used : PravegaSegmentStoreK8sService(io.pravega.test.system.framework.services.kubernetes.PravegaSegmentStoreK8sService) PravegaSegmentStoreService(io.pravega.test.system.framework.services.marathon.PravegaSegmentStoreService) PravegaSegmentStoreDockerService(io.pravega.test.system.framework.services.docker.PravegaSegmentStoreDockerService) ZookeeperDockerService(io.pravega.test.system.framework.services.docker.ZookeeperDockerService) BookkeeperDockerService(io.pravega.test.system.framework.services.docker.BookkeeperDockerService) HDFSDockerService(io.pravega.test.system.framework.services.docker.HDFSDockerService) ZookeeperService(io.pravega.test.system.framework.services.marathon.ZookeeperService) PravegaSegmentStoreK8sService(io.pravega.test.system.framework.services.kubernetes.PravegaSegmentStoreK8sService) PravegaControllerService(io.pravega.test.system.framework.services.marathon.PravegaControllerService) Service(io.pravega.test.system.framework.services.Service) PravegaControllerK8sService(io.pravega.test.system.framework.services.kubernetes.PravegaControllerK8sService) ZookeeperK8sService(io.pravega.test.system.framework.services.kubernetes.ZookeeperK8sService) PravegaControllerDockerService(io.pravega.test.system.framework.services.docker.PravegaControllerDockerService) BookkeeperService(io.pravega.test.system.framework.services.marathon.BookkeeperService) PravegaSegmentStoreService(io.pravega.test.system.framework.services.marathon.PravegaSegmentStoreService) BookkeeperK8sService(io.pravega.test.system.framework.services.kubernetes.BookkeeperK8sService) HDFSDockerService(io.pravega.test.system.framework.services.docker.HDFSDockerService) URI(java.net.URI) PravegaSegmentStoreDockerService(io.pravega.test.system.framework.services.docker.PravegaSegmentStoreDockerService)

Aggregations

Service (io.pravega.test.system.framework.services.Service)1 BookkeeperDockerService (io.pravega.test.system.framework.services.docker.BookkeeperDockerService)1 HDFSDockerService (io.pravega.test.system.framework.services.docker.HDFSDockerService)1 PravegaControllerDockerService (io.pravega.test.system.framework.services.docker.PravegaControllerDockerService)1 PravegaSegmentStoreDockerService (io.pravega.test.system.framework.services.docker.PravegaSegmentStoreDockerService)1 ZookeeperDockerService (io.pravega.test.system.framework.services.docker.ZookeeperDockerService)1 BookkeeperK8sService (io.pravega.test.system.framework.services.kubernetes.BookkeeperK8sService)1 PravegaControllerK8sService (io.pravega.test.system.framework.services.kubernetes.PravegaControllerK8sService)1 PravegaSegmentStoreK8sService (io.pravega.test.system.framework.services.kubernetes.PravegaSegmentStoreK8sService)1 ZookeeperK8sService (io.pravega.test.system.framework.services.kubernetes.ZookeeperK8sService)1 BookkeeperService (io.pravega.test.system.framework.services.marathon.BookkeeperService)1 PravegaControllerService (io.pravega.test.system.framework.services.marathon.PravegaControllerService)1 PravegaSegmentStoreService (io.pravega.test.system.framework.services.marathon.PravegaSegmentStoreService)1 ZookeeperService (io.pravega.test.system.framework.services.marathon.ZookeeperService)1 URI (java.net.URI)1