bluzelle / swarmdb Goto Github PK
View Code? Open in Web Editor NEWBluzelle is a smart, in-memory data store. It can be used as a cache or as a database.
Home Page: https://www.bluzelle.com
License: GNU Affero General Public License v3.0
Bluzelle is a smart, in-memory data store. It can be used as a cache or as a database.
Home Page: https://www.bluzelle.com
License: GNU Affero General Public License v3.0
macOS 10.13.6
How to reproduce.
Follow the instructions in the readme to install boost from the provided bash script in swarmDB/toolchain.
Result.
~ is taken literally and the install path will end up in /Users/username/swarmDB/toolchain/~/myboost/1_67_0/~/myboost
A workaround is to install boost with homebrew
System
Raspberry Pi 2 Model B
Raspbian GNU/Linux 9.3 (stretch)
I followed the build instructions and spawned each node in separate screen shells with
ETHERSCAN_IO_API_TOKEN=MY_TOKEN ./the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58001
ETHERSCAN_IO_API_TOKEN=MY_TOKEN ./the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58002
etc
The first time all worked well and I could see the heartbeats from the leader node in its console. I could add a new value and see it propagate, however after shutting them all down (cltr-c) and doing the same thing over, no leader seems to be elected, they all have the text "I am follower" in their consoles. I rebooted the system and gave it another go with the same results.
Hi, I am trying to configure the deamons bluzelle.json files, and when I am trying to run the ./swarm -c bluzelle.json I get the following error [2018-07-07 22:28:30.890888] [0x00007fff91d84380] [error] (main.cpp:220) - could not find our http port setting!.
Thanks in advance
I've worked my way through the READ ME and found equivalents to the Mac terminal cmds to set up the application. I'm currently stuck at:
RUNNING THE APPLICATION
Create 'peers' file in the same directory where the_db executable is located. Peers file contains the list of known nodes. Here is the example of peers file for 5 nodes running on localhost (';' can be used to comment lines):
; Comment
node_1=localhost:58001
node_2=localhost:58002
node_3=localhost:58003
node_4=localhost:58004
node_5=localhost:58005
Create simpe shell script to start multiple nodes. Below is the script for Ubuntu Linux:
#!/bin/bash
gnome-terminal -x bash -c './the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58001'
gnome-terminal -x bash -c './the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58002'
gnome-terminal -x bash -c './the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58003'
gnome-terminal -x bash -c './the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58004'
gnome-terminal -x bash -c './the_db --address 0x006eae72077449caca91078ef78552c0cd9bce8f --port 58005'
I've made the peers file, but it doesn't seem to pull from it. Also, I can't seem to figure out how to re-write the shell script so that it will function in the Mac terminal. genome-terminal is an unknown command. I'm still very noobish with most of this. Any help figuring this out would be greatly appreciated!
hi guys, i just paid money to this site for ICO is it a scam??
Hi,
I'm getting a problem with the connection. Seems that there is a problem related to the leader falling and other nodes not getting elected in time or the redirection not happening. The response is as follows:
Could not open socket to "13.78.131.94:51010": Connection refused (61).
It happened after I insist a few times (maybe 10?) with the same request data:
{
"bzn-api": "crud",
"cmd": "read",
"data": {"key":"1"},
"db-uuid": "my huge hash",
"request-id": 4
}
Considerations:
If there is any feedback on that, let me know. Thanks in advance!
on Debian 9 and 10, sudo make install will return
make: *** No rule to make target 'install'. Stop.
This can be remedied by commenting out the following two lines in swarmDB/pkg/CMakeLists.txt
if (UNIX AND NOT APPLE)
find_program(LSB_RELEASE lsb_release)
execute_process(COMMAND ${LSB_RELEASE} -is
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# if (${LSB_RELEASE_ID_SHORT} STREQUAL "Ubuntu")
add_subdirectory(debian)
# endif()
endif()
if (APPLE)
add_subdirectory(osx)
endif()
When building the DAEMON, I am hitting this on the "make" commnd:
/home/ec2-user/bluzelle/daemon/node/Daemon.cpp:12:43: error: cannot convert ‘boost::uuids::uuid’ to ‘uint8_t {aka unsigned char}’ in initialization
const boost::uuids::uuid node_id{gen()};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.