[
https://issues.apache.org/jira/browse/FLUME-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13842934#comment-13842934
]
Ashish Paliwal commented on FLUME-1678:
---------------------------------------
As of 1.4 docs, the configuration uses short notation like
a1.channels = c1
a1.sinks = k1
a1.sinks.k1.type = hbase
a1.sinks.k1.table = foo_table
a1.sinks.k1.columnFamily = bar_cf
a1.sinks.k1.serializer = org.apache.flume.sink.hbase.RegexHbaseEventSerializer
a1.sinks.k1.channel = c1
The type is internally resolved to FQCN using class
org.apache.flume.conf.sink.SinkType.
Just checked in 1.2.0 docs, and this seems to correct, snippet from 1.2.0 doc
agent_foo.channels = memoryChannel-1
agent_foo.sinks = hbaseSink-1
agent_foo.sinks.hbaseSink-1.type = org.apache.flume.sink.hbase.HBaseSink
agent_foo.sinks.hbaseSink-1.table = foo_table
agent_foo.sinks.hbaseSink-1.columnFamily = bar_cf
agent_foo.sinks.hbaseSink-1.serializer =
org.apache.flume.sink.hbase.RegexHbaseEventSerializer
agent_foo.sinks.hbaseSink-1.channels = memoryChannel-1
Is there anything that need to be addressed?
> Incorrect documentation for HBase sink
> --------------------------------------
>
> Key: FLUME-1678
> URL: https://issues.apache.org/jira/browse/FLUME-1678
> Project: Flume
> Issue Type: Documentation
> Components: Docs
> Affects Versions: v1.2.0
> Reporter: Samir Eljazovic
> Priority: Minor
> Labels: documentation
>
> Description of sink type for HBase sink in documentation is wrong. It should
> be *org.apache.flume.sink.hbase.HBaseSink* instead of
> *org.apache.flume.sink.HBaseSink*.
> Also, example configuration is missing serializer and column attributes to
> make it functional.
> Here are the properties I had to add to make it work:
> {code}
> # HBase
> agent.sinks.hbase-sink-1.channel = mem-channel-2
> agent.sinks.hbase-sink-1.type = org.apache.flume.sink.hbase.HBaseSink
> agent.sinks.hbase-sink-1.table = flume_data
> agent.sinks.hbase-sink-1.columnFamily = events
> agent.sinks.hbase-sink-1.batchSize = 100
> # Missing properties in example
> agent.sinks.hbase-sink-1.column = value
> agent.sinks.hbase-sink-1.serializer =
> org.apache.flume.sink.hbase.SimpleHbaseEventSerializer
> agent.sinks.hbase-sink-1.serializer.payloadColumn = payload
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)