FailoverSinkProcessor顾名思义是flume中sink输出容错的处理器
继承自AbstractSinkProcessor
先看下整体源码
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the N...
分类:
Web程序 时间:
2015-01-08 11:24:31
阅读次数:
234
flume的负载均衡即每次按照一定的算法选择sink输出到指定地方,如果在文件输出量很大的情况下,负载均衡还是很有必要的,通过多个通道输出缓解输出压力
flume内置的负载均衡的算法默认是round robin,轮询算法,按序选择
下面看一下具体实例:
# Name the components on this agent
a1.sources = r1
a1.sinks = k1 k2...
分类:
Web程序 时间:
2015-01-07 18:57:13
阅读次数:
236
关于failover网上也有很多例子,但是看到的有多重做法,个人觉得,本着职责单一的原则
1、一台机子运行一个flume agent
2、一个agent 的下游sink指向一个flume agent,不要一个flume agent配置多个端口【影响性能】
下面看具体实例:
首先是flumet agent client的配置
priority越高,优先级越高,会优先使用该sink...
分类:
Web程序 时间:
2015-01-07 16:53:24
阅读次数:
220
使用boost里面的mapped_file_sink,mapped_file_source和mapped_file_parameters来copy大文件的例子。...
分类:
移动开发 时间:
2015-01-07 16:48:59
阅读次数:
549
如图所示,新建一个JAVA工程,编辑pom文件,pom文件内容如下【这里取出了parent】:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http:/...
分类:
移动开发 时间:
2015-01-07 13:13:02
阅读次数:
759
A2DP Sink was not supported in Android 4.4. We implemented this feature which can be applied in the scenarios below.
You can get the code from https://android-review.googlesource....
分类:
移动开发 时间:
2014-12-24 18:13:36
阅读次数:
519
2014-12-19 01:05:42,141 (lifecycleSupervisor-1-1) [WARN - org.apache.flume.sink.AbstractRpcSink.start(AbstractRpcSink.java:294)] Unable to create Rpc ...
分类:
Web程序 时间:
2014-12-20 09:16:07
阅读次数:
461
今天根据教程做了实验二要到了两个新的模块 一个是 FFT SINK, 其作用是按频谱输出信号。另外一个就是 GUI Notebook ,起作用就是可以将SCOPE SINK 和 FFT SINK 以形如浏览器标签的形式排列,用来节省屏幕空间。如果没有这个话,这两个SINK会竖着排列在一起。下图所示是...
分类:
其他好文 时间:
2014-12-01 15:53:53
阅读次数:
229
堆排序是利用堆进行排序的高效算法,其能实现O(NlogN)的排序时间复杂度,具体算法分析可以点击堆排序算法时间复杂度分析。
算法实现:
调整堆:
void sort::sink(int* a, const int root, const int end)
{
int i=root;
while(2*i +1 <= end)
{
int k = 2*i+1;
if(k+1<=e...
分类:
编程语言 时间:
2014-11-16 23:09:56
阅读次数:
447
Tables and chairs, Sink(水槽)stove炉子 refrigerator (冰箱)do you have a dogno I don't公寓管理员之行trash (垃圾)niceparking do you having car?yes I do .two carsOne pa...
分类:
其他好文 时间:
2014-11-05 22:41:25
阅读次数:
195