Recent projects need to use Heka to deal with Redis data, then the problem is, how can it be achieved? The Redis plugin needs to be installed on the Heka.
1. Start adding the Heka-redis plugin to the compiler plug-in add-in.
cd/usr/local/heka/
Vim Cmake/plugin_loader.cmake
Add_external_plugin (git Https://github.com/victorcoder/heka-redis master)
2. Run script compilation.
SH build.sh
3. The results of the error, prompted no Redis package.
Heka/src/github.com/victorcoder/heka-redis/input.go:6:2:cannot Find Package "Github.com/garyburd/redigo/redis" in Any of:
/usr/lib/golang/src/github.com/garyburd/redigo/redis (from $GOROOT)
/usr/local/heka/build/heka/src/github.com/garyburd/redigo/redis (from $GOPATH)
MAKE[2]: * * * [Cmakefiles/hekad] Error 1
MAKE[1]: * * * [Cmakefiles/hekad.dir/all] Error 2
Make: * * * [ALL] Error 2
4. Use git to download the required Redis package directly.
cd/usr/local/heka/build/heka/src/github.com/
git clone Https://github.com/garyburd/redigo
5. Compile again successfully.
cd/usr/local/heka/
SH build.sh
To this, Heka Redis Plug-ins successfully compiled, you can start Heka Redis trip.