自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 flume ng1.6 +kafka sink

官方出了kafka sink 。晚上找的都配置不对。还是看源码搞定###sourcea1.sources = sysSrca1.sources.sysSrc.type=syslogudpa1.sources.sysSrc.bind=0.0.0.0a1.sources.sysSrc.port=3333a1.sources.sysSrc.channels=fileChanne...

2015-08-19 17:04:44 174

原创 flume ng研究一

flume 是一套日志收集,转发/转存工具。NG的架构非常简单,整个只是AGENT,分3个部分,SOURCE (数据源连接器),CHANNEL (缓存),SINK(数据目的地连接器)。整个应用有5个部分组成:数据源,SOURCE(只是数据源的连接器),CHANNEL,SINK(只是数据目的地的连接器),数据目的地。数据源和数据目的地数据flume系统之外的东西,中间3个属于FLUME。...

2015-08-19 11:28:43 93

原创 citest

>package com.huayang.xiangwap.service.MobileApiManager; import java.util.ArrayList;import java.util.List;import org.apache.http.protocol.HTTP;import org.apache.http.HttpResponse;import...

2015-08-13 10:43:03 174

原创 sonar

This XML file does not appear to have any style information associated with it. The document tree is shown below.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2...

2015-08-13 10:30:54 107

原创 springmvc

\This XML file does not appear to have any style information associated with it. The document tree is shown below.<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www...

2015-08-12 16:34:29 117

原创 myspring

This XML file does not appear to have any style information associated with it. The document tree is shown below.<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www....

2015-08-12 13:12:10 157

原创 mypom

This XML file does not appear to have any style information associated with it. The document tree is shown below.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2...

2015-08-12 13:07:00 210

原创 通过Terracotta实现基于Tomcat的Web应用集群

本文介绍如何配置Tomcat和Terracotta服务器将普通的Web应用部署到集群中,实现跨Tomcat节点的session复制,以达到负载均衡、提高系统吞吐量和灾难恢复的效果。基本原理简介一般利用Tomcat搭建Web应用集群有如下几种方法:1、利用负载均衡器的粘session的方式把所有同一session的请求都发送到相同的Tomcat节点。这样不同用户的请求就被平均分配到集群中各个to...

2010-11-01 14:47:38 221

原创 3种继承策略

Hibernate 简化继承映射学习映射类层次结构的三个易于实现的策略文档选项<script type="text/javascript"></script>打印本页<noscript></noscript><script type="text/javasc...

2009-10-12 09:06:14 193

原创 日期计算

上个月的第一天:  select date_sub(date_sub(date_format(now(),'%y-%m-%d'),interval extract(      day from now())-1 day),interval 1 month)上个月的最后一天:select date_sub(date_sub(date_format(now(),'%y-%m-%d'),in...

2009-09-30 09:32:48 70

原创 mysql的字符串函数

注意:如果结果的长度大于服务器参数max_allowed_packet,字符串值函数返回NULL 对于针对字符串位置的操作,第一个位置被标记为1。ASCII(str) 返回字符串str的最左面字符的ASCII代码值。如果str是空字符串,返回0。如果str是NULL,返回NULL。mysql> select ASCII('2'); ...

2009-09-29 14:43:46 73

StrutsPrepareAndExecuteFilter学习笔记

package org.apache.struts2.dispatcher.ng.filter; import org.apache.struts2.StrutsStatics; import org.apache.struts2.dispatcher.Dispatcher; import org.apache.struts2.dispatcher.ng.PrepareOperations; im...

2009-09-29 11:42:10 92

开源框架的学习途径

正确的学习方法不仅能够让你事半功倍,也能够让你更加接近真理。在这一系列的文章之初,我想首先说说学习一个开源框架的途径。这些学习方法,不仅适用于Struts2,我想同样适用于许多其他的开源框架,比如说Spring,Hibernate等等。而这些学习方法,也是我个人的一些心得体会,希望对初学者或者正在为学习开源框架犯愁的朋友带来一些启示。 目 录 [ - ]阅读、仔细阅读、反复阅读...

2009-09-29 10:27:49 107

原创 fck

FCKeditor 2.3.1 是功能完善的可视化编辑器,文件上传管理部分功能已经支持asp,php,aspx...等等,唯独尚未支持jsp,幸运的是Simone Chiaretta制作了Java 的整合文件FCKeditor.Java。 1. 下载最新版的FCKeditor http://www.fckeditor.net/download/ ...

2009-09-22 09:42:25 68

随机生成数据

create procedure insertTestDate() begin declare v int default 0; while v < 10000000 do insert into requestMessage (sendNumber,recieveDate,times,mnc,lac,ci,seq,resultCode,...

2009-09-12 10:22:22 112

定期生成分区和合并分区

delimiter //create procedure req_add_partition(spec_date DateTime)COMMENT '生成requestMessage表spec_date这天的分区'begin declare dateInt varchar(10);declare dateStr varchar(10);declare sqlStr ...

2009-09-11 17:06:00 105

原创 MYSQL event_scheduler

一、概述   事件调度器是在 MySQL 5.1 中新增的另一个特色功能,可以作为定时任务调度器,取代部分原先只能用操作系统任务调度器才能完成的定时功>能。例如,Linux 中的 crontabe 只能精确到每分钟执行一次,而 MySQL 的事件调度器则可以实现每秒钟执行一个任务,这在一些对实时性要>求较高的环境下就非常实用了。  事件调度器是定时触发执行的,在这个角度上也可以称作是"...

2009-09-09 11:33:53 293

原创 数据库读写分离研究

如何提高大型网站的访问速度,根据理解和经验一般常用的方法如SQL优化、缓存、集群等等,NewEgg的专家提示说做过大型网站的话应该知道数据库读写分离的。 读写分离(Read/Write Splitting)”,基本的原理是让主数据库处理事务性查询,而从数据库处理SELECT查询。数据库复制被用来把事务性查询导致的变更同步到集群中的从数据库。对于大访问量的网站,一般会采用...

2009-07-30 09:22:15 74

空空如也

空空如也

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

TA关注的人

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