Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2880

how to config a custom hbase sink?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • notrack
    • None
    • None

    Description

      my flume version is 1.6.0 and i'm ready to sink logs to hbase,before this action,i need to process logs.so i defined a class named AsyncHbaseLogEventSerializer,it implements the interface of AsyncHbaseEventSerializer and i overwrite the method inside.here is my sink part of configuration file:
      server.sinks.hdfs_sink.type = asynchbase
      server.sinks.hdfs_sink.table = access_log
      server.sinks.hdfs_sink.columnFamily = cb
      server.sinks.hdfs_sink.serializer = com.xxxx.flume.sink.hbase.AsyncHbaseLogEventSerializer
      server.sinks.hdfs_sink.serializer.columns = host_name,remote_host,remote_user,event_ts,req,req_status,resp_bytes,ref,agent
      my question is should i package my own class as a jar package,and put it to lib?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jxzdoing Jack Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: