if (zKpath != null && hdfsPath != null) {
throw new RuntimeException("Cannot have both [" + BLUR_ZOOKEEPER_TRACE_PATH + "] and [" + BLUR_HDFS_TRACE_PATH
+ "] set.");
}
if (hdfsPath != null) {
return new HdfsTraceStorage(configuration);
} else {
return new LogTraceStorage(configuration);
}
}