
设计模式
文章平均质量分 77
bo_hai
这个作者很懒,什么都没留下…
展开
-
单例模式实现
} return instance; } }原创 2011-03-08 15:34:53 · 96 阅读 · 0 评论 -
Hive Failed to connect to the MetaStore Server 解决方案
,使用命令 show databases 时,报错。错误信息是: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 再看hive.log 日志记录: 2013-06-01 11:52:16,379 WARN hive.metastore (HiveMetaStoreClient.java:open(285)) - Failed to connect to the MetaStore Serve原创 2013-06-01 15:21:11 · 1143 阅读 · 0 评论 -
Condition 在多线程协作中应用实例
til.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class NewPlate { private List<Object> eggs = new ArrayList<Object>(); private Lock lock = new ReentrantLock(); private Conditio2014-01-16 15:47:16 · 117 阅读 · 0 评论