How to compile gearman with redis persistence queue ?

1,346 views
Skip to first unread message

Vivek

unread,
Oct 15, 2013, 8:15:01 AM10/15/13
to gea...@googlegroups.com
Hi ,
I am compiling gearman with following options.
 ./configure --enable-mysql  --enable-hiredis

But while running gearmand , I am getting following error:

  ERROR 2013-10-15 11:52:22.067165 [  main ] Unknown queue redis initialize(UNKNOWN_OPTION) -> libgearman-server/queue.cc:256
./lib/linux/gcc/64/sbin/gearmand: Error while initializing the queue : redis
earmand --queue-type=redis



Brian Aker

unread,
Oct 18, 2013, 6:16:49 AM10/18/13
to gea...@googlegroups.com
You can only use one at a time.

Cheers,
-Brian

--
You received this message because you are subscribed to the Google Groups "Gearman" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gearman+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Vivek

unread,
Oct 19, 2013, 1:31:32 PM10/19/13
to gea...@googlegroups.com
Only using --enable-hiredis, also not working :( 
It is compiling files inside in plugins folder for redis queue. But giving -q redis gives same error. 

Brian Aker

unread,
Oct 20, 2013, 7:03:10 AM10/20/13
to gea...@googlegroups.com
Hi!

Assuming lp:~brianaker/gearmand/redis-regression-getarg merges once it passes CI, then the gearmand command line args will be fixed.

It will still need work. I am betting that the layout of how we store data isn't done well enough for Redis.

Cheers,
-Brian

Giorgio Salluzzo

unread,
Nov 27, 2013, 12:01:59 PM11/27/13
to gea...@googlegroups.com
Still no chance to use Redis as storage backend?

Thanks in advance,
Giorgio

Alessandro del Gobbo

unread,
Feb 12, 2014, 9:21:09 AM2/12/14
to gea...@googlegroups.com
Same problem here with the last version of Gearman (actually 1.1.12)

Have you found any solution?

melon...@gmail.com

unread,
Feb 27, 2014, 3:43:52 AM2/27/14
to gea...@googlegroups.com
Hi, everyone

I've got the latest version(1.1.12) of gearmand to works with redis persistent queue on my centos.When we execute configure we need to do nothing,because the support of redis queue is enabled by default.But you need to install the hiredis first.Then When you configure you will see the following lines in the output:
checking hiredis/hiredis.h usability... yes
checking hiredis/hiredis.h presence... yes
checking for hiredis/hiredis.h... yes
checking for main in -lhiredis... yes

Once you install success, execute
/paht/to/gearmand/sbin/gearmand -h
you will found the following lines in the output:
redis:
  --redis-server arg    Redis server
  --redis-port arg      Redis server port/service
Then you can use redis as the persistent queue.

Best regards
-melon

在 2013年10月15日星期二UTC+8下午8时15分01秒,Vivek写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages