metadata store not available for bootstrapping client

42 views
Skip to first unread message

Mat Evans

unread,
Jun 25, 2014, 11:45:16 AM6/25/14
to project-...@googlegroups.com
Hi,

I'm having a problem getting anything back from the metadata store to bootstrap a client.

This is using 1.6.0.

This is what the shell client shows

➜  voldemort-release-1.6.0-cutoff  ./bin/voldemort-shell.sh metadata tcp://localhost:6676
[16:41:49,856 voldemort.client.ZenStoreClient] INFO Bootstrapping metadata for store metadata  [main]
[16:41:49,969 voldemort.client.AbstractStoreClientFactory] INFO Client zone-id [0] Attempting to obtain metadata for store [metadata]   [main]
[16:41:50,066 voldemort.client.AbstractStoreClientFactory] ERROR Bootstrap - unknown store: metadata  [main]
[16:41:50,070 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-1]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-2]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-3]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-4]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-6]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-7]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-5]
[16:41:50,071 voldemort.store.socket.clientrequest.ClientRequestExecutorFactory$ClientRequestSelectorManager] INFO Closed, exiting  [voldemort-niosocket-client-8]
[16:41:50,073 voldemort.store.socket.clientrequest.ClientRequestExecutor] WARN No client associated with Socket[unconnected]  [main]
[16:41:50,073 voldemort.store.socket.clientrequest.ClientRequestExecutor] INFO Closing remote connection from Socket[unconnected]  [main]
[16:41:50,073 voldemort.common.service.VoldemortService] INFO Stopping scheduler-service  [main]
[16:41:50,073 voldemort.common.service.VoldemortService] INFO The service is already stopped, ignoring duplicate attempt.  [main]
Could not connect to server: Unknown store 'metadata'.

But I see the same thing in my Go client.

..and the server output doesn't seem to not anything as an error

[16:41:49,924 voldemort.server.niosocket.AsyncRequestHandler] INFO Protocol negotiated for Socket[addr=/127.0.0.1,port=54462,localport=6676]: voldemort-native-v3  [voldemort-niosocket-server1]
[16:41:50,069 voldemort.server.niosocket.AsyncRequestHandler] INFO Closing remote connection from Socket[addr=/127.0.0.1,port=54462,localport=6676]  [voldemort-niosocket-server1]

Do I need to put the metadata store specs in stores.xml? or is there something else obvious i'm missing?

Thanks,
Mat

Brendan Harris

unread,
Jun 25, 2014, 12:26:04 PM6/25/14
to project-...@googlegroups.com

Hi Mat,

The metadata store is a system store, which cannot be accessed like a normal store. What is it you're wanting to do?

--
You received this message because you are subscribed to the Google Groups "project-voldemort" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-voldem...@googlegroups.com.
Visit this group at http://groups.google.com/group/project-voldemort.
For more options, visit https://groups.google.com/d/optout.

Mat Evans

unread,
Jun 25, 2014, 12:32:49 PM6/25/14
to project-...@googlegroups.com
Hi Brendan,

ah ok - I was intending to get all the cluster info at the beginning of a connection to manage reconnecting etc

Not necessarily client routing, but knowing what nodes are available.

Is that not possible from a client?

Brendan Harris

unread,
Jun 25, 2014, 12:37:48 PM6/25/14
to project-...@googlegroups.com

It is possible. Take a look at the bootstrap() method in the AbstractStoreClientFactory to get an idea of how that works. I don't have the code in front of me right now, so I cannot offer much more advice on that.

Mat Evans

unread,
Jun 25, 2014, 12:46:58 PM6/25/14
to project-...@googlegroups.com
Hi Brendan, 

I looked at that just now and I think it's doing just a plain get on the metadata store using the cluster.xml key which is what I'm trying to do in my client.

But I just get 

2014/06/25 17:45:02 Unknown store 'metadata'.

I'll have another look at the code when I get home tonight, might see something i'm missing!

Thanks for your help

Mat Evans

unread,
Jun 26, 2014, 7:29:49 AM6/26/14
to project-...@googlegroups.com
Found the problem - ShouldRoute wasn't being set to false properly.

thanks,
Reply all
Reply to author
Forward
0 new messages