Giter Club home page Giter Club logo

Comments (4)

annie2010 avatar annie2010 commented on July 19, 2024

More info on how coordinator/daemon are started per tutorial. It seems that some config steps are missed in tutorial maybe ..

  1. able to start coordinator

python -m hdcoordinator.coordinator --control-port 6970 --host-port 1234 --logging debug

INFO:root:Host ID XXX identifies as instance
DEBUG:root:Host ID XXX is CONFIGPENDING; reconfiguring
DEBUG:root:Host ID XXX acknowledges config

  1. able to start daemon

hyperdex-daemon 127.0.0.1 1234 127.0.0.2 /tmp

E0224 10:52:36.367226 18288 daemon.cc:149] We've been configured to a dummy node.

  1. However, it seems that coordinator does not know how to configure when daemon starts ...

a) coordinator notes that HOST ID is XXX. How to specify host id?
b) coordinator notes HOST ID XXX is CONFIGPENDING; reconfiguring
What does a) b) mean? Does it mean config is incomplete? Does it mean daemon is not started successfully?
c) what's missing? how to proceed?

from hyperdex.

rescrv avatar rescrv commented on July 19, 2024

This is a temporary issue. In HEAD there is a tool which locally validates the space description, and provides much more feedback for debugging issues like this. There will be a release including this tool early next week.

For now, let's debug the current code on your machine. Can you give me a transcript of your terminal session when netcat fails? I sometimes missed the trailing "." which is on a line by itself, but if that is not the issue, it'll help to see exactly what was typed.

from hyperdex.

annie2010 avatar annie2010 commented on July 19, 2024

Hey Robert,

Thanks a lot for your reply. It is true the problem in my netcat script is that I missed the ending "." So your hints corrected this problem.

However, moving forward, I had problem to run python client to insert a record into the table/space created using netcat.

What can I miss?

Thx in advance,
Annie

Details:

  1. Problem to insert records into table/space per tutorial

import hyperclient
c = hyperclient.Client('127.0.0.1', 1234)
c.insert('phonebook', 'jsmith1', {'first': 'John', 'last': 'Smith','phone': 6075551024})
Traceback (most recent call last):
File "", line 1, in
File "hyperclient.pyx", line 342, in hyperclient.Client.insert (hyperclient/python/hyperclient.c:4644)
File "hyperclient.pyx", line 356, in hyperclient.Client.async_insert (hyperclient/python/hyperclient.c:5120)
File "hyperclient.pyx", line 207, in hyperclient.DeferredInsert.cinit (hyperclient/python/hyperclient.c:2518)
hyperclient.HyperClientException: Connection Failure

  1. I examined the table/space created on my local disk:

ls -al hyperdex/
total 20
drwxr-xr-x 5 nokia nokia 4096 Feb 27 15:46 .
drwxr-xr-x 33 nokia nokia 4096 Feb 27 10:29 ..
drwx------ 2 nokia nokia 4096 Feb 27 15:46 region(space=1, subspace=0, prefix=1, mask=0)
drwx------ 2 nokia nokia 4096 Feb 27 15:46 region(space=1, subspace=0, prefix=1, mask=9223372036854775808)
drwx------ 2 nokia nokia 4096 Feb 27 15:46 region(space=1, subspace=1, prefix=2, mask=13835058055282163712)

from hyperdex.

annie2010 avatar annie2010 commented on July 19, 2024

No worries. I re-tried python client commands, and able to insert records. It will be nice to have more meaningful error msg for debugging :)

Thanks for help.

Mark this issue is resolved.

from hyperdex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.