摘要:
"""Demonstrates how to use the background scheduler to schedule a job that executes on 3 second intervals."""from datetime import datetimeimport timei... 阅读全文
阅读排行榜
Flume 的失败选择机器和BACKOFF的机制
2014-05-21 12:47 by briller, 862 阅读, 收藏,
摘要:
在OrderSelector.java中默认的是round_robin,即轮询。backoff 算法是指数回退,代码如下: public void informFailure(T failedObject) { //If there is no backoff this method is a... 阅读全文
Flume sink 相关内容
2014-05-26 18:01 by briller, 857 阅读, 收藏,
摘要:
SinkRunner.java 开启线程调用相应的Processor(Policy) , 根据 Policy调用process的返回值来决定线程睡眠时间,每次默认延后1s,最大默认为5s。public class SinkRunner implements LifecycleAware { pri... 阅读全文
Hive alter column 问题
2014-04-03 10:40 by briller, 787 阅读, 收藏,
摘要:
Hive Alter column 没有删除,只有REPLACE,在使用非内置的SERDE时可能无法使用RPLACE COLUMNS。目前使用JSON SERDE时,会发现如果使用external table时只是在create时能保证字段与列对应正确,当ALTER后就不正确。只好改成了managed table 阅读全文
java new类名后接方法名声明
2014-12-10 17:34 by briller, 727 阅读, 收藏,
摘要:
public class TestBase { int x = 3; public void ppp() { System.out.println(x + 4); }}public class TestMain { public static void main(String[] ar... 阅读全文
浙公网安备 33010602011771号