if (inputDataSetName != null) {
// TODO: It's a hack for stream
if (inputDataSetName.startsWith("stream://")) {
StreamBatchReadable stream = new StreamBatchReadable(URI.create(inputDataSetName));
StreamConfig streamConfig = streamAdmin.getConfig(stream.getStreamName());
Location streamPath = StreamUtils.createGenerationLocation(streamConfig.getLocation(),
StreamUtils.getGeneration(streamConfig));
LOG.info("Using Stream as input from {}", streamPath.toURI());
TextStreamInputFormat.setTTL(job, streamConfig.getTTL());
TextStreamInputFormat.setStreamPath(job, streamPath.toURI());
TextStreamInputFormat.setTimeRange(job, stream.getStartTime(), stream.getEndTime());
job.setInputFormatClass(TextStreamInputFormat.class);
} else {