记录生活

Flume启动失败问题一则

<Category: 日志分析> 发表评论

cat /var/log//flume--master-xxx.log
异常:

2012-05-04 15:56:56,156 INFO org.apache.zookeeper.server.NIOServerCnxn: binding to port 0.0.0.0/0.0.0.0:3181
2012-05-04 15:56:56,187 INFO org.apache.zookeeper.server.persistence.FileSnap: Reading snapshot /tmp/flume-flume-zk/server-0/version-2/snapshot.0
2012-05-04 15:56:56,202 INFO org.apache.zookeeper.server.persistence.FileTxnSnapLog: Snapshotting: 0
2012-05-04 15:56:58,094 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:00,098 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:02,101 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:04,105 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:06,108 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:08,112 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:10,116 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:12,118 INFO com.cloudera.flume.master.ZKInProcessServer: server 0.0.0.0:3181 not up yet
2012-05-04 15:57:12,119 ERROR com.cloudera.flume.master.FlumeMaster: IO problem: ZooKeeper server did not come up within 15 seconds

阅读这篇文章的其余部分

本文来自: Flume启动失败问题一则

Jekyll遭遇编码问题

<Category: Debug, Linux, Ruby> 发表评论
Building site: /home/wwwroot/doc.elasticsearch.cn -> /home/wwwroot/doc.elasticsearch.cn/_site
/usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/convertible.rb:29:in `read_yaml': invalid byte sequence in GB18030 (ArgumentError)
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/page.rb:24:in `initialize'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:140:in `new'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:140:in `block in read_directories'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `each'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `read_directories'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:135:in `block in read_directories'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `each'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `read_directories'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:98:in `read'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/lib/jekyll/site.rb:38:in `process'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/bin/jekyll:19:in `load'
	from /usr/local/rvm/gems/ruby-1.9.2-p318/bin/jekyll:19:in `<main>'
</main></top>

阅读这篇文章的其余部分

本文来自: Jekyll遭遇编码问题

rvm&ruby-env

<Category: Uncategorized> 发表评论

https://rvm.io//rvm//

阅读这篇文章的其余部分

本文来自: rvm&ruby-env

gitosis

<Category: Linux, VPS维护日志> 发表评论

安装 sudo apt-get -core 配置 git服务器

#创建git服务器管理用户
sudo useradd -m git
sudo passwd git
#创建git仓库存储目录
sudo mkdir /home/git/repositories
#设置git仓库权限
sudo chown git:git /home/git/repositories
sudo chmod 755 /home/git/repositories

初始化全局设置

git config --global user.name "medcl"
git config --global user.email "m@medcl.net"

安装python的setup tool

#easy_install setuptools
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz 
 
tar zxvf setuptools-0.6c11.tar.gz 
cd setuptools-0.6c11 
python setup.py install 
 
yum install python-setuptools

获取并安装gitosis

cd /tmp
git clone git://github.com/res0nat0r/gitosis.git
cd gitosis
python2.4 setup.py install
#注意必须是2.4,如果你还有2.5之类的话,将会报:raise DistributionNotFound(req)

阅读这篇文章的其余部分

本文来自: gitosis

fudanNLP试玩

<Category: NLP, 搜索> 发表评论

fudannllp,一个不错的NLP开源库:http://code.google.com/p// 使用LGPL协议(GNU Lesser General Public License)

FudanNLP 是以统计机器学习为基础,并结合人工规则来处 理中文自然语言以及信息检索、信息抽取的各种任务。
阅读这篇文章的其余部分

本文来自: fudanNLP试玩

elasticsearch插件carrot2发布,版本1.0

<Category: Diving Into ElasticSearch> 发表评论

carrot2是一个对搜索结果聚合的开源项目,做了一个插件,用来实现elasticsearch搜索结果的聚合,carrot2调用的是mahout的库,本插件支持几个简单的参数配置,先发个版本,有时间再改进。
github地址:

https://github.com/medcl/-/downloads

安装方法:
1.下载stopword词典配置文件(https://github.com/downloads/medcl/elasticsearch-carrot2/config.zip),解压到config目录
2.下载安装插件

bin/plugin install medcl/elasticsearch-carrot2/1.0

3.重启ElasticSearch
4.安装完毕

阅读这篇文章的其余部分

本文来自: elasticsearch插件carrot2发布,版本1.0

elasticsearch插件carrot2开发

<Category: Diving Into ElasticSearch> 发表评论

elasticsearch开发carrot2插件

ideaj新建项目,省略102字。
阅读这篇文章的其余部分

本文来自: elasticsearch插件carrot2开发

[收藏]DIJ-多旋翼Q/A

<Category: 4轴, 乱搞> 发表评论

大疆创新上找到的Q/A,对4轴都适用,收藏。

http://www.-innovations.com/minisite/index_cn.html

阅读这篇文章的其余部分

本文来自: [收藏]DIJ-多旋翼Q/A

brisk cluster deploy

<Category: cassandra> 发表评论

... ...
阅读这篇文章的其余部分

本文来自: brisk cluster deploy

使用nginx做elasticsearch的proxy

<Category: Diving Into ElasticSearch> 发表评论

搭建的http://s.medcl.net使用的是nginx来做elasticsearch的proxy反向代理,如何做的呢?
nginx与elasticsearch配置
阅读这篇文章的其余部分

本文来自: 使用nginx做elasticsearch的proxy