hedisdb / hedis Goto Github PK
View Code? Open in Web Editor NEWHedis can retrieve data from **ANY** database directly via Redis
Home Page: http://hedis.io
License: BSD 3-Clause "New" or "Revised" License
Hedis can retrieve data from **ANY** database directly via Redis
Home Page: http://hedis.io
License: BSD 3-Clause "New" or "Revised" License
The function "exit" does not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function "sigShutdownHandler".
like malloc deprecated messages.
To test the compile result, I try reduce the hedis.yml as follow.
mysqltest:
type: mysql
username: root
password: MY_PASSWORD
host: localhost
database: hedistest
env:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
I add some debug messages and show as follow.
root@8baeaa89a5cf:/home/amean/hedis/src# ./redis-server --hedis ../hedis.yml
Close config file, and ready to add connector
Finish zmalloc sizeof(hedisConnector), line_count = 9
Switch type 0, at i = 0
Switch type 1, at i = 1
Switch type 2, at i = 5
case 2 first step, finish zmalloc, entry_count=4
finish case 2, j= 4
Segmentation fault (core dumped)
If I use original hedis.yml file to test, there is no such problem. So I think there are some bugs in parse_yaml_entry function that cause segmention fault at initial stage of the program execute.
Like below
cdh1:
type: hbase
zookeeper: localhost:2181
env: # Environment variables
CLASSPATH: $CLASSPATH:/home/kewang/git/libhbase/target/libhbase-1.0-SNAPSHOT/lib/async-1.4.0.jar:/home/kewang/git/libhbase/target/libhbase-1.0-SNAPSHOT/lib/asynchbase-1.5.0-libhbase-20140311.193218-1.jar
HBASE_LIB_DIR: /home/kewang/hbase/lib
mysqltest:
type: mysql
username: root
password: MY_PASSWORD
host: localhost
database: hedistest
otherdb:
type: gooddb
If I load same type twice or more, always become latest variables. Like cdh1
and cdh2
:
cdh1:
type: hbase
zookeeper: localhost:2181
extra: aaa
cdh2:
type: hbase
zookeeper: localhost:2181
extra: bbb
cdh3:
type: template
When write hedis configuration file, just use git-like protocol and will auto build connectors
cdh1:
type: hbase # https://github.com/hedisdb/hedis-connector-hbase
zookeeper: localhost:2181
mysqltest:
type: kewangtw/hedis-connector-mysql # https://github.com/kewangtw/hedis-connector-mysql
username: root
password: MY_PASSWORD
host: localhost
database: hedistest
otherdb:
type: https://bitbucket.org/good/gooddb # https://bitbucket.org/good/gooddb
If GET command already retrieves data from connector, it must provide to invalidate data and get newer it.
Would you like to add more error handling for return values from functions like the following?
Add JSON, XML format, ...etc.
Hedis is based on Redis unstable branch. I think that should support old Redis version.
If I use SET "cdh1://User@kewang" "{\"cf:token\": \"001token001\"}"
, it would put JSON value to DB.
Pay attention to various DB data format
It should develop myself YAML parser version
Let users easy to use hedis
Compare Redis & Hedis benchmark
When I ran benchmark over 10000 current connections, it maybe has memory leak situation.
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.