上一篇文章分析了Flume如何加载配置文件的,动态加载也只是重复运行getConfiguration()。
本篇分析加载配置文件后各个组件是如何运行的? 加载完配置文件订阅者Application类会收到订阅信息执行: @Subscribe public
synchronized voi...
分类:
其他好文 时间:
2014-07-22 23:16:35
阅读次数:
527
Spring对Hibernate有很好的支持DataSource
->SessionFactory->
HibernateTranscationManagerHibernate中通过SessionFactory创建和维护Session。Spring对SessionFactory的配置进行了整合,无需...
分类:
编程语言 时间:
2014-05-09 17:46:55
阅读次数:
527
【关键的错误信息】: TransactionException: Transaction not successfully started 和一个
doCommit
从该关键字看,是使用Hibernate事务管理器(而不是Spring,下面详细log的绿色字体)处理事务的commit时抛出的,
【具体解决】:
//下面的代码段会报错
Session sessio...
分类:
系统相关 时间:
2014-05-06 22:44:10
阅读次数:
628
关于HBase的sink的所有内容均在org.apache.flume.sink.hbase包下。
每个sink包括自己定制的,都extends AbstractSink implements Configurable。
一、首先是configure(Context context)方法。该...
分类:
其他好文 时间:
2014-05-05 10:55:40
阅读次数:
462
今天在学习JDBC的时候看到了关于MySql的事务的隔离级别的问题,感觉内容挺高级的,所以记录一篇文章,以备后面使用。
数据库隔离级别有四种,应用《高性能mysql》一书中的说明:
然后说说修改事务隔离级别的方法:
1.全局修改,修改mysql.ini配置文件,在最后加上
1 #可选参数有:READ-UNCOMMITTED, READ-CO...
分类:
数据库 时间:
2014-05-04 18:56:12
阅读次数:
450
锁行信息SET TRANSACTION ISOLATION LEVEL READ
UNCOMMITTED 存储过程:SET Transaction Isolation Level
Read语法的四种情况这几天一直在弄存储过程,现在在这里跟大伙共享下资料:SET Transaction Isolati...
分类:
数据库 时间:
2014-05-03 23:23:41
阅读次数:
402
Say you have an array for which theithelement
is the price of a given stock on dayi.If you were only permitted to complete at
most one transaction (ie...
分类:
其他好文 时间:
2014-05-02 00:37:20
阅读次数:
349
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition...
分类:
数据库 时间:
2014-05-01 18:16:35
阅读次数:
377