记录生活
作者 Author : Medcl' - 目前发表了 270 篇文章

flume搭建调试

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

flume搭建调试

Installing

https://ccp..com/display/CDHDOC/CDH3+Installation

流水账,备忘。
阅读这篇文章的其余部分 »

本文来自: flume搭建调试

cloudra-manager修改使用自定义源

<Category: Hadoop> 发表评论

使用cloudra-manager来管理hadoop集群,但是官方源太慢了,搭本地源呗,另外repo写死在package里面了,将包解开,修改下,替换repo仓库地址为本地源即可。
阅读这篇文章的其余部分 »

本文来自: cloudra-manager修改使用自定义源

elasticsearch禁用dynamic mapping

<Category: Diving Into ElasticSearch> 发表评论

同名字段的问题,不好避免,干脆禁用dynamic mapping,但是又不能全局的禁用,一般情况下,dynamic mapping还是很帅的,那怎样对个别的索引进行关闭呢?
阅读这篇文章的其余部分 »

本文来自: elasticsearch禁用dynamic mapping

ElasticSearch不同类型下同名字段排序错误

<Category: Diving Into ElasticSearch> 发表评论

小异常,记录一把。 阅读这篇文章的其余部分 »

本文来自: ElasticSearch不同类型下同名字段排序错误

WP后台登陆失败

<Category: Uncategorized> 发表评论

WP后台登陆不进去,原来表有点小问题。。。

ERROR 144 (HY000): Table './medcl_blog/wp_users' is marked as crashed and last (automatic?) repair failed
 
1167  cd /usr/local/mysql/
1168* 
1169  cd var/
1170  ls
1171  cd medcl_blog
1172  ls
1173  myisamchk -f wp_user*.MYI

本文来自: WP后台登陆失败

clouderaCDH3国内源

<Category: Hadoop> 发表评论

贡献一个cloudra 国内源 #如何使用呢?

#yum clean all &yum list updates
 
wget http://repo.medcl.net/cloudera-chd3-medcl.repo -O /etc/yum.repos.d/cloudera-cdh3-cn.repo
 
yum search hadoop
yum -y install hadoop-0.20

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

本文来自: clouderaCDH3国内源

graylog2 logstash体验

<Category: 试试, 资源分享> 发表评论

:日志收集展现,效果不错,logstash功能强大(这个词貌似有点用烂的感觉),支持各种来源,各种规则灵活定义,输出也是各种各样,有图有真相,再加上flume,完美的解决方法啊。
阅读这篇文章的其余部分 »

本文来自: graylog2 logstash体验

ElasticSearch里DSL使用事故一则:_cache参数

<Category: Diving Into ElasticSearch> 发表评论

大家在写QueryDSL的时候,要特别注意参数,比如今天我就碰到了一个关于_cache的问题 由于使用自己写的QueryBuilder来生成QueryDSL查询语句,所以有些参数虽然没有指定,但是默认带上了,但有些情况下不注意就会出现问题。 如下例: 阅读这篇文章的其余部分 »

本文来自: ElasticSearch里DSL使用事故一则:_cache参数

php哈希冲撞补丁安装

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

闹得沸沸扬扬的,我也打个补丁,虽然我的服务器破。

cd -5.2.17/
./buildconf --force
./configure --prefix=/usr/local/ --with-config-file-path=/usr/local//etc --with-=/usr/local/ --with-mysqli=/usr/local//bin/_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
make ZEND_EXTRA_LIBS='-liconv'
make install

php放哈希ddos攻击方法:
1、找到源码里的main/php_variables.c文件
2、搜索zend_symtable_update(应该有2个)
3、在前面加入代码:
if (zend_hash_num_elements(symtable1) >= 1000) {
php_error_docref(NULL TSRMLS_CC, E_ERROR, "FM_ERROR");
}
4、重新编译

本文来自: php哈希冲撞补丁安装

doc.elasticsearch.cn解析成功了

<Category: Diving Into ElasticSearch> 发表评论

cn域名解锁就是慢啊,

以后ES中文文档都放这里了:http://doc.elasticsearch.cn

下面是已完成的部分链接:

安装:http://doc.elasticsearch.cn/guide/reference/setup/

配置:http://doc.elasticsearch.cn/guide/reference/setup/configuration.html

API接口说明:http://doc.elasticsearch.cn/guide/reference/api/

QueryDSL查询:http://doc.elasticsearch.cn/guide/reference/query-dsl/

Mapping:http://doc.elasticsearch.cn/guide/reference/mapping/

索引模块:http://doc.elasticsearch.cn/guide/reference/index-modules/store.html

事务日志:http://doc.elasticsearch.cn/guide/reference/index-modules/translog.html

...

文档比较多,招志愿者一起翻译。

本文来自: doc.elasticsearch.cn解析成功了