Search in sources :

Example 1 with IndexingScheduler

use of org.apache.asterix.external.indexing.IndexingScheduler in project asterixdb by apache.

the class HDFSUtils method initializeIndexingHDFSScheduler.

public static IndexingScheduler initializeIndexingHDFSScheduler(ICCServiceContext serviceCtx) throws HyracksDataException {
    ICCContext ccContext = serviceCtx.getCCContext();
    IndexingScheduler scheduler = null;
    try {
        scheduler = new IndexingScheduler(ccContext.getClusterControllerInfo().getClientNetAddress(), ccContext.getClusterControllerInfo().getClientNetPort());
    } catch (HyracksException e) {
        throw new RuntimeDataException(ErrorCode.UTIL_HDFS_UTILS_CANNOT_OBTAIN_HDFS_SCHEDULER);
    }
    return scheduler;
}
Also used : IndexingScheduler(org.apache.asterix.external.indexing.IndexingScheduler) HyracksException(org.apache.hyracks.api.exceptions.HyracksException) ICCContext(org.apache.hyracks.api.context.ICCContext) RuntimeDataException(org.apache.asterix.common.exceptions.RuntimeDataException)

Aggregations

RuntimeDataException (org.apache.asterix.common.exceptions.RuntimeDataException)1 IndexingScheduler (org.apache.asterix.external.indexing.IndexingScheduler)1 ICCContext (org.apache.hyracks.api.context.ICCContext)1 HyracksException (org.apache.hyracks.api.exceptions.HyracksException)1