diff --git a/kafka-plugins-0.10/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java b/kafka-plugins-0.10/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java index f69d4e3..94333b6 100644 --- a/kafka-plugins-0.10/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java +++ b/kafka-plugins-0.10/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java @@ -20,6 +20,7 @@ import co.cask.cdap.api.annotation.Macro; import co.cask.cdap.api.annotation.Name; import co.cask.cdap.api.annotation.Plugin; +import co.cask.cdap.api.annotation.Requirements; import co.cask.cdap.api.common.Bytes; import co.cask.cdap.api.data.batch.Input; import co.cask.cdap.api.data.format.FormatSpecification; @@ -67,6 +68,7 @@ @Plugin(type = BatchSource.PLUGIN_TYPE) @Name(KafkaBatchSource.NAME) @Description("Kafka batch source.") +@Requirements(datasetTypes = {KeyValueTable.TYPE}) public class KafkaBatchSource extends BatchSource { public static final String NAME = "Kafka"; diff --git a/kafka-plugins-0.8/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java b/kafka-plugins-0.8/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java index 0e40167..75758fd 100644 --- a/kafka-plugins-0.8/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java +++ b/kafka-plugins-0.8/src/main/java/co/cask/hydrator/plugin/batch/source/KafkaBatchSource.java @@ -20,6 +20,7 @@ import co.cask.cdap.api.annotation.Macro; import co.cask.cdap.api.annotation.Name; import co.cask.cdap.api.annotation.Plugin; +import co.cask.cdap.api.annotation.Requirements; import co.cask.cdap.api.common.Bytes; import co.cask.cdap.api.data.batch.Input; import co.cask.cdap.api.data.format.FormatSpecification; @@ -64,6 +65,7 @@ @Plugin(type = BatchSource.PLUGIN_TYPE) @Name(KafkaBatchSource.NAME) @Description("Kafka batch source.") +@Requirements(datasetTypes = {KeyValueTable.TYPE}) public class KafkaBatchSource extends BatchSource { public static final String NAME = "Kafka";