自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

原创 sphinx

# 1### 添加到/usr/local/coreseek/etc/csft.conf配置文件### 需要修改连接的数据库配置 ###### 需要确认dict的路径配置 ###source djapp_tag{ type = pgsql sql_host = 127.0.0.1 sql_user = postgres sql_pass = * sql_d...

2012-05-25 11:42:51 122

原创 sentry

### 参考 ###http://readthedocs.org/docs/sentry/en/latest/index.htmlhttp://raven.readthedocs.org/en/latest/config/index.html?highlight=keyhttp://blog.shanbay.com/archives/998### 服务端安装 ####1 S...

2012-05-25 11:39:00 187

原创 hbase 配置replica个数

1,vi /hadoop/app/hbase/conf/hbase-default.xml Dfs.replication 2 2, restart hbasehbase-daemon.sh stop thrifthbase-daemon.sh stop regionserverhbase-daemon.sh stop master...

2012-03-10 15:11:14 191

原创 eclipse install

http://pydev.sourceforge.net/updateshttp://subclipse.tigris.org/updatehttp://logviewer.eclipselabs.org.codespot.com/git/de.anbos.eclipse.logviewer.update/

2012-02-21 16:22:44 98

原创 单机版hbase

hadoop-0.20.2hbase-0.90.5[b]免密码ssh设置[/b]现在确认能否不输入口令就用ssh登录localhost:[code="java"]$ ssh localhost[/code]/etc/hosts[code="java"]192.168.10.147 fredmaster[/code]如果不输入口令就无法用ssh登陆localh...

2012-01-10 18:07:34 122

原创 hbase 0.90.4 to 0.90.5

1,拷贝0.90.4的conf、lib/hadoop-0.20-core.jar到0.90.52,删除0.90.5的lib/hadoop-core-0.20-append-r1056497.jar3,ln -s hbase-0.90.5 hbase

2012-01-10 10:37:46 107

原创 如何去除EditPlus自动备份功能. bak

每次都被那个.bak文件弄的气愤EditPlus总是自动生成一个.BAK文件。其实想去掉EditPlus的自动备份功能也简单,方法如下:打开菜单栏上的:工具(T)->参数选择(P)->文件取消“保存时自动创建备份文件”前的复选框中选择状态即可。或Tools-->Preference-->选中Files-->Create backup file when ...

2011-12-31 11:49:56 141

原创 鸭梨测试 httperf

./bin/httperf --server 192.168.100.20 --port 8080 --uri /index.html --rate 200 --num-conn 20000 --num-call 1 --timeout 3/opt/httperf

2011-12-13 18:25:54 152

原创 ci db debug

echo "======" . $this->db->last_query();

2011-12-13 12:28:00 154

原创 Vi使用方法(备查)

vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里只是简单地介绍一下它的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的,因此您可以在其他任何介绍vi的地方进一步了解它。Vi也是Linux中最基本的文本编辑器,学会它后,您将在Linux的世界里畅行无阻。1、vi的基本概念   基本上vi可以分为...

2011-12-08 20:07:31 85

原创 cat,more,less

cat一次性把文件内容全部显示出来,显示完了cat命令就返回了,不能进行交互式操作,适合察看内容短小、不超过一屏的文件;more比cat强大一点,支持分页显示,你可以ctrl+B ctrl+F .....上下滚屏,但是不支持像shift+G(跳到文件尾)这种操作;less比more更强大一点,支持各种命令,随便翻页、跳转、查找.....想怎么看,就怎么看,爱怎么看,就怎么看。l...

2011-12-05 15:34:08 100

原创 计算linux执行时间差

[root@localhost fred]# cat date_test.sh #!/bin/bashdatedate_start=`date +%s`date_end=`date +%s`datemin=`expr $date_end - $date_start`echo "cost is "`expr $date_end - $date_start`" se...

2011-11-15 13:58:40 317

原创 print format

#format float 3.1415926->3.14a = 3.1415926print ab = float(int(a*100))/100print b#string to float import stringstr = "3.1415926"print strprint string.atof(str)使用print输出各...

2011-11-12 11:36:35 453

原创 logging

[b]1.简单的将日志打印到屏幕[/b][code="java"]import logginglogging.debug('This is debug message')logging.info('This is info message')logging.warning('This is warning message') #屏幕上打印:WARNING:root:...

2011-11-12 11:35:06 259

原创 scp

scp命令,在Linux系统之间copy文件 Linux之间copy文件常用有3种方法:1, ftp服务,也就是其中一台Linux安装ftp Server,这样可以另外一台使用ftp的client程序来进行文件的copy。2, samba服务,类似Windows文件copy的方式来操作,比较简洁方便,3, scp命令来进行文件复制。 scp是有Security的文件co...

2011-11-11 09:54:26 2366 1

原创 hbase link

1, HBase.info[url]http://hbase.info/[/url]2, 淘宝共享数据平台[url]http://www.tbdata.org/archives/1509[/url]

2011-11-10 16:15:11 122

原创 hbase 查看

http://127.0.0.1:60010/master.jsphttp://127.0.0.1:50070/dfshealth.jsphadoop dfs -ls hdfs://127.0.0.1/hbasehadoop dfs -du hdfs://127.0.0.1/hbase

2011-11-10 12:07:52 762

原创 tar

tar -xvzf *.tar.gz -C /tar -cvzf *.tar.gz /

2011-11-10 10:37:38 139

原创 hbase 备份及恢复

[b]1, hbase自带的备份恢复工具[/b]hbase org.apache.hadoop.hbase.mapreduce.Export 'table1' /home/fred/table1hbase org.apache.hadoop.hbase.mapreduce.Import 'table1' /home/fred/table1导入时必须先创建表结构。[url]htt...

2011-11-10 10:20:10 295

原创 mongo fork

/opt/mongodb/bin/mongod --logpath /opt/mongodb/logs/mongo.log --dbpath /opt/mongodb/data/db --forkmongodb://localhost:27017

2011-11-10 10:03:42 282

原创 mysql 海量数据导入

1, nohup 的使用是十分方便的,只需在要处理的命令前加上 nohup 即可,标准输出和标准错误缺省会被重定向到 nohup.out 文件中。一般我们可在结尾加上"&"来将命令同时放入后台运行nohup /opt/lampp/bin/mysql -uroot -proot test_db use dbtest; //设置当前要导入数据的dbtest数据库mysql> set name...

2011-11-09 18:39:50 175

CodeIgniter2.0_CN

good 中文版 very good trust this

2011-09-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除