alibaba / tair Goto Github PK
View Code? Open in Web Editor NEWA distributed key-value storage system developed by Alibaba Group
License: GNU General Public License v2.0
A distributed key-value storage system developed by Alibaba Group
License: GNU General Public License v2.0
打扰了
as the title
So can code get updated?
Or we can only reimplement it
用tair_client_api�编程,程序运行完毕退出时报错!
代码如下:
#include
#include <boost/timer.hpp>
#include <boost/progress.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include "Tair/include/tair_client_api.hpp"
using namespace std;
using namespace tair;
using namespace boost;
int main()
{
cout << "Hello World!" << endl;
boost::scoped_ptr<tair_client_api> tair_client(new tair_client_api);
tair_client->setup_cache(0);
tair_client->set_light_mode();
tair_client->set_thread_count(4);
bool bOk = tair_client->startup("192.168.100.160:5198", nullptr, "group_1");
if(LIKELY(bOk))
{
data_entry key("k1");
data_entry value("v1");
int ret = 0;
boost::progress_timer t;
for(int i = 0; i < 10; ++i)
{
ret = tair_client->put(0, key, value, 0, 0);
if(UNLIKELY(ret))
{
cout <<"Put Error"<<endl;
}
}
}else
{
cout << "Tair Start Error"<<endl;
}
tair_client->flush_mmt();
tair_client->close();
return 0;
}
程序正确运行完毕,退出时报错如下:
The Inferior stopped because it received a signal from the operating system.
Signal name :SIGABRT
Signal meaning: Aborted
求解!
十分感谢!
src/storage/ldb/leveldb/ax_port_leveldb.m4:15: the top level
configure.ac:113: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
ax_boost.m4:43: AX_BOOST is expanded from...
configure.ac:113: the top level
configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:3: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:123: error: required file 'test/Makefile.in' not found
configure.ac:123: error: required file 'test/interface_test/Makefile.in' not found
configure.ac:123: error: required file 'test/unit_test/Makefile.in' not found
configure.ac:123: error: required file 'test/statistics_test/Makefile.in' not found
configure.ac:123: error: required file 'test/retry_all_test/Makefile.in' not found
Makefile.am:2: error: required directory ./test does not exist
Makefile.am:5: error: required directory ./test does not exist
后续更新吗? 希望增加点文档。
Are there any plans on supplying a Go client for it?
Does tair support rdb egine in its open source version?Does it have any support for collection-type data structure in other engines?
现在TaoCode上的 http://code.taobao.org/svn/tair-client-java/trunk 签出的代码编译有错误,能不能也迁移到github上,并解决一下编译问题。
看了一下客户端的代码是用httpclient实现的,但是提交部分的编码方式没有文档,Wiki也只有一些基础的使用问题,并没有深入的这部分的文档,如果有这部分的文档需求应该取哪里查看呢?
https://github.com/alibaba/tair/blob/master/src/common/file_list_factory.hpp#L138
puffer should be deleted.
How can we get the latest java client?I find one at this address:https://github.com/alibaba/tair-java-client.But it is too old.And in my test its addItem method is not compatible with tair3.2.4.
如题,缺少一个lib easy 包。烦请上传一份el7的二进制。
An error occured when I installed the Tair .
This error was: hash_map not found.
How to solve this problem?
Thanks!
通过搜索引擎发现了tair开源的主页在这里:http://tair.taobao.org/
然后从主页就链接到了开源的项目的位置:http://code.taobao.org/p/tair/src/
后来我又发现了这里。
我遇到一些问题,不知应该在哪里提问,希望淘宝的同学回答一下。
稍稍看了下,Tair里面的ConfigServer处理正常的包和心跳包用了不同的端口。一般来说,在分布式系统里,心跳连接和业务连接一般是共享的吧?否则业务连接断掉的情况下,心跳连接仍然正常的话,心跳的意义何在?
我们用的tair,两年没有重启了,然后重启需要半个小时,用的ldb,调查了下,看起来是ldb的manifect文件太大了,最近的版本能解决下这个问题么?例如ldb instance并行开启,或者什么的?
easy_uthread.c:251:17: error: ‘SIG_BLOCK’ undeclared (first use in this function); did you mean ‘F_LOCK’?
sigprocmask(SIG_BLOCK, &zero, &t->context.uc_sigmask);
^~~~~~~~~
求解决方案,谢谢
上层的分布式策略较粗糙,在数据量很大的时候机器间的数据通信量较大。是否支持提交补丁?
hi team!
我们现在正在使用tair2.3.x版本,并且部署到了产线,想问问若升级到tair3.2.4版本,底层协议与是否是兼容老版本,我试了试tair2.3.x的tairclient连接到tair3.2.4的configserver,目前是没问题的,有没有需要注意的地方?这方面我看文档没有这么阐述。另外这两个版本的差别有多大?
感谢,望回复。
line 323:
CLogger::CLogger& CLogger::getLogger() => CLogger& CLogger::getLogger()
mainly add boost related flags for LDADD
src/mdb/Makefile.am => add -lboost_system
src/client/Makefile.am => add -lboost_system
src/dataserver/Makefile.am => add -lboost_system -lboost_thread
src/invalserver/Makefile.am => add -lboost_system -lboost_thread
src/tools/Makefile.am => add -lboost_system -lboost_thread
Could not open the tair wiki in taobao code, the server give 403
tair/src/configserver/table_builder.cpp
Line 52 in 5cce166
tair 有支持批量导入吗? 指标数据,一般都非常大,一般离线算好,提供线上使用,一般都是几亿条,insert 操作太慢,现在只能选择hbase ,生成hfile,批量导入。
该头文件注释乱码(从老版本就乱,这个还有正确的编辑版本么)
there are encoding problems in "tblog.h". Could you fix them?
好难呀,编译不成功,没有编译好的开箱即用的吗?docker容器、二进制呀之类的。
经查看,是libeasy编译有问题,没有生成libeasy库。
log_error("dataserver: %s UP, accept strategy is: %d illegal.",
p_server->group_info_data->get_accept_strategy(), tbsys::CNetUtil::addrToString(req->server_id).c_str());
server_info_rw_locker.unlock();
group_info_rw_locker.unlock();
return;
想了解一下关于tair_client_api_impl
提供的接口,是线程安全的吗?例如多个并发调用put
等接口,因为我想利用这个impl
来开发server
.
tair/src/common/wait_object.hpp
Line 306 in 5cce166
上一个issue被关闭说是会逐步更新文档到这里。但是至今wiki只有简单的介绍,而且淘宝code上的页面早就无法打开,返回403 forbidden了。wiki的更新有时间表吗?
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.