基本配置metadata.broker.list:broker服务器集群列表,格式为host1:port1,host2:port2...producer.type:消息发送类型同步还是异步,默认为同步compression.codec:消息的压缩格式,默认为none不压缩,也可以为gzip,snappy,lz4serializer.class:消息加密格式,默认为kafka.se..
分类:
其他好文 时间:
2016-04-26 16:07:47
阅读次数:
146
[root@mysql~]#cat/usr/local/logstash-2.2.0/etc/test1.conf
input{
#stdin{
#type=>"yeshuai"
#codec=>"json"
#}
file{
type=>"yeshuai"
path=>["/opt/log/test.log"]
start_position=>"beginning"
codec=>"json"
}
}
filter{
if[type]=="yeshuai"{
thro..
分类:
Web程序 时间:
2016-04-25 19:51:03
阅读次数:
468
1/ISAM ISAM是一个定义明确且历经时间考验的数据表格管理方法,它在设计之时就考虑到数据库被查询的次数要远大于更新的次数。因此,ISAM执行读取操作的速度很快,而且不占用大量的内存和存储资源。ISAM的两个主要不足之处在于,它不支持事务处理,也不能够容错:如果你的硬盘崩溃了,那么数据文件就无法 ...
分类:
数据库 时间:
2016-04-24 20:17:44
阅读次数:
247
一、使用环境 python2.7,django>1.7 二、数据库进行配置 在setting文件中进行修改 1、找到DATABASES DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql ...
分类:
数据库 时间:
2016-04-24 20:16:25
阅读次数:
222
Eclipse默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules ...
分类:
系统相关 时间:
2016-04-24 00:32:22
阅读次数:
368
本站文章均为李华明Himi原创,转载务必在明显处注明:转载自【黑米GameDev街区】原文链接:http://www.himigame.com/unreal-engine-game/2164.html首先Himi在这里解释下,为什么还是开篇…原因主要有两点:考虑到要写也要写点干货不是么?!但是由于官方文档写的真的够详细了,对..
分类:
编程语言 时间:
2016-04-23 01:48:53
阅读次数:
340
问题一、 Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd 找不到这个.wsdd的配置文件,没有自动生成! 原因是使用Eclipse自动生成axis服务端时 ...
分类:
Web程序 时间:
2016-04-21 20:06:39
阅读次数:
235
CLI Usage of CLI Codec Compress IO JXPath Object Graph Traversal DOM/JDOM Document Access Modifying Object Graphs Extension Functions Lang ...
分类:
Web程序 时间:
2016-04-21 18:29:09
阅读次数:
217
PHP 5.2.17p1 (cli) (built: May 28 2015 16:15:30)Copyright (c) 1997-2010 The PHP GroupZend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies 返回结 ...
分类:
Web程序 时间:
2016-04-20 18:06:06
阅读次数:
217
input{
file{
type=>"java-err"
path=>"/fsmeeting/tomcat-service/logs/catalina.out"
tags=>"java-err"
codec=>multiline{
pattern=>"^%{TIMESTAMP_ISO8601}"
negate=>true
what=>"previous"
}
}
}
filter{
if[type]=="java-err"{
grok{
match=>{"m..
分类:
其他好文 时间:
2016-04-19 20:27:01
阅读次数:
2759