上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 53 下一页

Netty In Action

摘要: 1 introduction 1.2 Asynchronous by design two most common ways to work with or implement an asynchronous API, 1.2.1 Callbacks 回调函数,本质, move the execution of these methods from the “caller” thr... 阅读全文
posted @ 2016-12-27 15:30 fxjwind 阅读(920) 评论(0) 推荐(0) 编辑

kafka - advertised.listeners and listeners

摘要: listeners, Listener List - Comma-separated list of URIs we will listen on and their protocols. Specify hostname as 0.0.0.0 to bind to all interfaces. Leave hostname empty to bind to default in... 阅读全文
posted @ 2016-12-27 14:56 fxjwind 阅读(20606) 评论(0) 推荐(3) 编辑

Flink - NetworkEnvironment

摘要: NetworkEnvironment 是一个TaskManager对应一个,而不是一个task对应一个 其中最关键的是networkBufferPool, operator产生的中间结果,ResultPartition,或是input数据,InputGate 都是需要memory来暂存的,这就需要networkBufferPool来管理这部分内存 /** * Networ... 阅读全文
posted @ 2016-12-09 16:51 fxjwind 阅读(1624) 评论(0) 推荐(1) 编辑

Flink – window operator

摘要: 参考, http://wuchong.me/blog/2016/05/25/flink-internals-window-mechanism/ http://wuchong.me/blog/2016/06/06/flink-internals-session-window/ WindowOperator window operator通过WindowAssigner和Tr... 阅读全文
posted @ 2016-12-06 14:52 fxjwind 阅读(1849) 评论(0) 推荐(0) 编辑

Flink – Trigger,Evictor

摘要: org.apache.flink.streaming.api.windowing.triggers; Trigger public abstract class Trigger implements Serializable { /** * Called for every element that gets added to a pane. The resul... 阅读全文
posted @ 2016-12-02 16:29 fxjwind 阅读(3412) 评论(0) 推荐(0) 编辑

Flink - RocksDBStateBackend

摘要: 如果要考虑易用性和效率,使用rocksDB来替代普通内存的kv是有必要的 有了rocksdb,可以range查询,可以支持columnfamily,可以各种压缩 但是rocksdb本身是一个库,是跑在RocksDBStateBackend中的 所以taskmanager挂掉后,数据还是没了, 所以RocksDBStateBackend仍然需要类似HDFS这样的分布式存储来存储snapsho... 阅读全文
posted @ 2016-11-29 16:49 fxjwind 阅读(6643) 评论(0) 推荐(0) 编辑

Flink - state管理

摘要: 在Flink – Checkpoint 没有描述了整个checkpoint的流程,但是对于如何生成snapshot和恢复snapshot的过程,并没有详细描述,这里补充 StreamOperator /** * Basic interface for stream operators. Implementers would implement one of * {@link ... 阅读全文
posted @ 2016-11-25 23:20 fxjwind 阅读(2437) 评论(0) 推荐(0) 编辑

Flink - state

摘要: public class StreamTaskState implements Serializable, Closeable { private static final long serialVersionUID = 1L; private StateHandle operatorState; private StateHandle funct... 阅读全文
posted @ 2016-11-25 23:19 fxjwind 阅读(1386) 评论(0) 推荐(0) 编辑

Flink -- Failover

摘要: JobManager failover LeaderLatch private synchronized void setLeadership(boolean newValue){ boolean oldValue = hasLeadership.getAndSet(newValue); if ( oldValue && !newValue ) //原来是leader,... 阅读全文
posted @ 2016-11-24 19:46 fxjwind 阅读(1774) 评论(0) 推荐(0) 编辑

Stream Processing for Everyone with SQL and Apache Flink

摘要: Where did we come from? With the 0.9.0-milestone1 release, Apache Flink added an API to process relational data with SQL-like expressions called the Table API. The central concept of this API is a Ta... 阅读全文
posted @ 2016-11-21 13:14 fxjwind 阅读(734) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 53 下一页