GitHub user lukangping opened a pull request:

    https://github.com/apache/flume/pull/138

    Cassandra Sink module.

    Here is the basic module for cassandra sink, which is used in our product 
code for collecting specific log event into the cassandra table.
    There are 2 event serialization options: JsonCassandraEventSerializer and 
RegexCassandraEventSerializer.  For the property configuration, should be 
specified as:
    
    a1.sinks.k1.type = cassandra
    a1.sinks.k1.serializer = 
org.apache.flume.sink.cassandra.JsonCassandraEventSerializer
    a1.sinks.k1.cassandra.contactPoints = 172.30.10.241
    a1.sinks.k1.cassandra.username = test
    a1.sinks.k1.cassandra.password = test
    a1.sinks.k1.cassandra.keyspace =test_keyspace
    a1.sinks.k1.cassandra.table = test_table
    a1.sinks.k1.datetime.format = yyyy/MM/dd HH:mm:ss
    
    Cheers.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lukangping/flume trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flume/pull/138.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #138
    
----
commit 57eeb7a30d24ee113a5bb15f516a8a4c1d64de65
Author: lukangping <kangping...@hotmail.com>
Date:   2017-05-31T07:29:19Z

    Simple Cassandra Sink.

commit 79a9f70dceee5cd355e8d04abb11c95c7671955d
Author: lukangping <kangping...@hotmail.com>
Date:   2017-05-31T08:36:40Z

    Fix test case in cassandra-sink module.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to