- 博客(8)
- 收藏
- 关注
原创 在Java中调用C++
在java中调用自己的c++代码是一件简单的事情,以下类为例: class Prompt { private native String getLine(String prompt); public static void main(String args[]) { Prompt p = new Prompt(); String input = p.getLine(
2010-02-26 10:50:00
520
原创 Fastcgi 的多线程示例
/**//* * threaded.c -- A simple multi-threaded FastCGI application. */#ifndef lintstatic const char rcsid[] = "$Id: threaded.c,v 1.9 2001/11/20 03:23:21 robs Exp $";#endif /* not lint */
2009-11-21 20:20:00
878
1
原创 使用hbase-backup备份你的hbase数据库
Hbase的备份通常使用distcp进行批量拷贝,在我的尝试中经常出现各种问题,甚至table lost,貌似对s3的支持有点混乱。 hbase-backup工具提供了非常灵活的hbase数据导入/导出方式: http://issues.apache.org/jira/browse/HBASE-897 下载完0.19版本的hbase-backup后即可使用ant进行编译。
2009-11-04 13:53:00
6070
原创 Apache2下的反向代理设置
环境是Ubuntu 9.04, 首先当然是安装Apache2。 1. 进入mod_availables下拷贝proxy.conf, proxy.load, proxy_http.load到mod_enables下2. 配置: 编辑proxy.conf: ProxyRequests Off
2009-10-21 16:27:00
842
原创 Ubuntu下的Thrift安装
1. wget -O thrift.tgz "http://gitweb.thrift-rpc.org/?p=thrift.git;a=snapshot;h=HEAD;sf=tgz“2. apt-get install libboost-dev libevent-dev build-essential python-dev automake pkg-config libtool flex bi
2009-10-13 15:03:00
612
原创 Hbase & Thrift , 使用C++访问Hbase
如果希望使用C++访问Hbase的话,在官方API出现前,可能目前来说Thrift是最好的协议了,下面是Thrift的简介: Thrift is a software framework for scalablecross-language services development. It combines a software stack witha code generatio
2009-10-13 14:30:00
2095
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人