Repository: storm Updated Branches: refs/heads/master c242378be -> a8554305b
AvroGenericRecordBolt instead of SequenceFileBolt Changing the example code and use AvroGenericRecordBolt instead of SequenceFileBolt⦠Section âSupport for Avro Filesâ starts by explained the use of org.apache.storm.hdfs.bolt.AvroGenericRecordBolt for Avro files. However, the example code uses SequenceFileBolt instead, and that doesnât work, obviously because the method withSchemaAsString isnât part of SequenceFileBolt, but part of org.apache.storm.hdfs.bolt.AvroGenericRecordBolt instead. So, the change is nothing but changing the name of class SequenceFileBolt and replace it with the correct AvroGenericRecordBolt. Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/51746991 Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/51746991 Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/51746991 Branch: refs/heads/master Commit: 51746991079dee7ac4ad4045eb3cfbadc78fc038 Parents: 6d88951 Author: johanwitters <[email protected]> Authored: Tue Jan 5 16:16:04 2016 +0000 Committer: johanwitters <[email protected]> Committed: Tue Jan 5 16:16:04 2016 +0000 ---------------------------------------------------------------------- external/storm-hdfs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/51746991/external/storm-hdfs/README.md ---------------------------------------------------------------------- diff --git a/external/storm-hdfs/README.md b/external/storm-hdfs/README.md index 7819f81..450a8f5 100644 --- a/external/storm-hdfs/README.md +++ b/external/storm-hdfs/README.md @@ -295,7 +295,7 @@ The `org.apache.storm.hdfs.bolt.AvroGenericRecordBolt` class allows you to write // create sequence format instance. DefaultSequenceFormat format = new DefaultSequenceFormat("timestamp", "sentence"); - SequenceFileBolt bolt = new SequenceFileBolt() + AvroGenericRecordBolt bolt = new AvroGenericRecordBolt() .withFsUrl("hdfs://localhost:54310") .withFileNameFormat(fileNameFormat) .withSchemaAsString(schema)
