Heka Processing Redis Plugin Compilation tutorial

Source: Internet
Author: User
Tags redis git clone

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.