flockdb + gizzmo issue

89 views
Skip to first unread message

seanm

unread,
Apr 12, 2012, 1:29:27 AM4/12/12
to FlockDB
I'm trying to get the demo setup but I can't seem to get passed an
issue when running dist/flockdb/scripts/setup-env.sh

It seems setup-env.sh calls gizzmo like so:

gizzmo -H localhost -P 7920 addforwarding -- 2 0


which returns:

/opt/gizzmo/bin/../lib/gizzard/thrift.rb:38:in `parse': Invalid shard
id 'localhost/forward_2': shard ids are composed of '<table-
prefix>_<table-id>_<three-or-more-digit-id>[_<optional-
suffix>]' (RuntimeError)
from /opt/gizzmo/bin/../lib/gizzard/commands.rb:342:in `run'
from /opt/gizzmo/bin/../lib/gizzard/commands.rb:341:in `each'
from /opt/gizzmo/bin/../lib/gizzard/commands.rb:341:in `run'
from /opt/gizzmo/bin/../lib/gizzard/commands.rb:36:in `run'
from /opt/gizzmo/bin/../lib/gizzmo.rb:655
from /opt/gizzmo/bin/../lib/gizzmo.rb:648:in `custom_timeout'
from /opt/gizzmo/bin/../lib/gizzmo.rb:653
from /opt/gizzmo/bin/gizzmo:3:in `load'
from /opt/gizzmo/bin/gizzmo:3


I using flockdb/gizzmo from their masters, but I also tried from some
of the tagged versions and I still get the same thing. Any ideas?


ps- If it matters any, all the flockdb unit tests worked for me:
Passed: : Total 265, Failed 0, Errors 0, Passed 265, Skipped 0

dezibel

unread,
Apr 18, 2012, 3:32:50 AM4/18/12
to flo...@googlegroups.com
I'm newbie to all those things and I have the same damn issue.
I've tried to look around the gizzmo help and I've figured out that there's a problem with that "shard id".

Invalid shard id 'localhost/forward_1': shard ids are composed of '<table-prefix>_<table-id>_<three-or-more-digit-id>

The "create" subcommand should be something like this:
gizzmo create [options] CLASS_NAME SHARD_ID
While the setup-env.sh does that strange sequence:

  forward_shard=$($gizzmo create -s "INT UNSIGNED" -d "INT UNSIGNED" "com.twitter.flockdb.SqlShard" "localhost/forward_${i}")
  backward_shard=$($gizzmo create -s "INT UNSIGNED" -d "INT UNSIGNED" "com.twitter.flockdb.SqlShard" "localhost/backward_${i}")
  $gizzmo addforwarding -- $i 0 $forward_shard
  $gizzmo addforwarding -- -$i 0 $backward_shard
 
I really don't understand the usage of "addforwarding" because the help says:
gizzmo addforwarding TABLE_ID BASE_ID SHARD_ID 
And in our case there aren't any table! And what is the "BASE_ID" ?!? And those " -- [-]Si 0 " in the script ?!?
And… "$forward_shard" should contain the SHARD_ID not the "create" comand! .-.

I think I've to create the table before entering the loop in the setup-env.sh with the:
gizzmo create-table [options] WEIGHT TEMPLATE ...
 But there aren't any docs or examples for that…

I hope someone can help us! :)

P.S.: Sorry for my not pretty good English, I'm an italian ICT high school student… ^^"

ksauzz

unread,
Apr 22, 2012, 12:32:54 AM4/22/12
to flo...@googlegroups.com
Hi

What version of gizzmo did you use? I use gizzmo-0.13.1. It works.
According to the error messages, I guess you used 0.15.0 or later.
I look like that gizzmo's command line interface was changed after
version 0.15.0. It can't run with setup-env.sh.

I would like to recommend you to use older version if you used latest gizzmo.

My English is not good too. :(

2012/4/18 dezibel <marco...@gmail.com>:

seanm

unread,
Apr 25, 2012, 6:00:20 PM4/25/12
to flo...@googlegroups.com
Ok thanks, I will try that.


On Saturday, April 21, 2012 10:32:54 PM UTC-6, ksauzz wrote:
Hi

What version of gizzmo did you use? I use gizzmo-0.13.1. It works.
According to the error messages, I guess you used 0.15.0 or later.
I look like that gizzmo's command line interface was changed after
version 0.15.0. It can't run with setup-env.sh.

I would like to recommend you to use older version if you used latest gizzmo.

My English is not good too. :(

2012/4/18 dezibel <>:

dezibel

unread,
Apr 26, 2012, 9:47:57 AM4/26/12
to flo...@googlegroups.com
I'm glad to tell you that few days ago I was able to run the setup-env.sh by reinstalling gizzmo (0.13.x, again) and specifying the complete command path for both gizzmo and mysql in the script.
Now I've temporarily "paused" my project, but I hope everything will be fine. :)

However, I invite the project contributors to write down more documentation! ;) Think about a "For dummies"-like tutorial for the rest of us… xD
Reply all
Reply to author
Forward
0 new messages