The `add_external_plugin` line you added should work. You didn't include
your config, but I'm guessing that you left out a [SnappyDecoder] section.
When you wire the code in, that makes a plugin of type SnappyDecoder
available to be used in your configuration. To use a SnappyDecoder in a
particular server instance, you need a TOML section that declares it,
such as:
[SnappyDecoder]
or:
[my_snappy_decoder]
type = "SnappyDecoder"
Once you've done this, you can use that decoder in other places, like so:
[KafkaInputExample]
type = "KafkaInput"
decoder = "SnappyDecoder"
...etc..
or, if you used the second version:
[KafkaInputExample]
type = "KafkaInput"
decoder = "my_snappy_decoder"
...etc...
-r
On 08/26/2015 05:34 AM, Christian Kniep wrote:
Me again,
even if I create it as an external plugin I got the same result:
###
2015/08/26 14:24:38 Input 'KafkaInputExample' failed to start: no
registered 'SnappyDecoder’ decoder
###
My plugin: https://github.com/qnib/heka-snappy
I just added this line to cmake/externals.cmake:
###
add_external_plugin(git https://github.com/qnib/heka-snappy master)
###
Hmm…
Christian
--
Christian Kniep |Release Engineer
www.gaikai.com <http://www.gaikai.com/>
On 26 Aug 2015, at 14:00, Christian Kniep <[email protected]
<mailto:[email protected]>> wrote:
Hey there,
I tried to introduce the SnappyDecoder into a heka-fork, but failed… :(
###
2015/08/26 13:30:03 Input 'KafkaInputTest' failed to start: no
registered 'SnappyDecoder’ decoder
###
My changes are here:
https://github.com/mozilla-services/heka/compare/dev...qnib:snappy
Heka compiles but somehow the SnappyDecoder is not registered.
What do I miss? Where do I have to register the services other then
stating it in the go-file.
Or do I have to somehow point to the file in order to get the decoder
register…
Furthermore, is there a way to list all registered plugins? Maybe I
should create an external plugin by putting it into a distinct repository…
But apart from that, why is the plugin not registered? :/
Cheers
Christian
--
<Gaikai_Logo.png>
Christian Kniep |Release Engineer
www.gaikai.com <http://www.gaikai.com/>
On 25 Aug 2015, at 12:56, Christian Kniep <[email protected]
<mailto:[email protected]>> wrote:
Hey folks,
I am looking into heka and would like to use the snappy decoder.
I found the decoder in the data-pipeline:
https://github.com/mozilla-services/data-pipeline/tree/master/heka/plugins/snap
But couldn’t find it here:
https://github.com/mozilla-services/heka/tree/dev/plugins
Will this SnappyDecoder be pushed into heka itself?
Cheers and thx for this cool tool… I got I feeling I am going to love it…
Christian
--
<Gaikai_Logo.png>
Christian Kniep |Release Engineer
www.gaikai.com <http://www.gaikai.com/>
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka