[ 
https://issues.apache.org/jira/browse/STORM-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14012898#comment-14012898
 ] 

ASF GitHub Bot commented on STORM-211:
--------------------------------------

Github user revans2 commented on a diff in the pull request:

    https://github.com/apache/incubator-storm/pull/128#discussion_r13204413
  
    --- Diff: external/storm-hdfs/README.md ---
    @@ -0,0 +1,342 @@
    +# Storm HDFS
    +
    +Storm components for interacting with HDFS file systems
    +
    +
    +## Usage
    +The following example will write pipe("|")-delimited files to the HDFS 
path hdfs://localhost:54310/foo. After every
    +1,000 tuples it will sync filesystem, making that data visible to other 
HDFS clients. It will rotate files when they
    +reach 5 megabytes in size.
    +
    +```java
    +// use "|" instead of "," for field delimiter
    +RecordFormat format = new DelimitedRecordFormat()
    +        .withFieldDelimiter("|");
    +
    +// sync the filesystem after every 1k tuples
    +SyncPolicy syncPolicy = new CountSyncPolicy(1000);
    +
    +// rotate files when they reach 5MB
    +FileRotationPolicy rotationPolicy = new FileSizeRotationPolicy(5.0f, 
Units.MB);
    +
    +FileNameFormat fileNameFormat = new DefaultFileNameFormat()
    +        .withPath("/foo/");
    +
    +HdfsBolt bolt = new HdfsBolt()
    +        .withFsUrl("hdfs://localhost:54310")
    +        .withFileNameFormat(fileNameFormat)
    +        .withRecordFormat(format)
    +        .withRotationPolicy(rotationPolicy)
    +        .withSyncPolicy(syncPolicy);
    +```
    +
    +### Packaging a Topology
    +When packaging your topology, it's important that you use the 
[maven-shade-plugin]() as opposed to the
    +[maven-assempbly-plugin]().
    --- End diff --
    
    s/assempbly/assembly/



> Add module for HDFS integration
> -------------------------------
>
>                 Key: STORM-211
>                 URL: https://issues.apache.org/jira/browse/STORM-211
>             Project: Apache Storm (Incubating)
>          Issue Type: Sub-task
>            Reporter: P. Taylor Goetz
>
> Add a module with generic components (storm, trident) for interacting with 
> HDFS:
> - Write to regular and sequence files
> - Core bolts, and Trident state implementation.
> - Integrate with secure (kerberos-enabled) HDFS



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to