
java
iteye_3911
这个作者很懒,什么都没留下…
展开
-
good java website
http://javapapers.com/http://www.manning.com/原创 2011-12-13 13:42:50 · 95 阅读 · 0 评论 -
tomat multiple instance setup
http://www.shaunabram.com/multiple-tomcat-instances/http://www.coderanch.com/t/550067/Tomcat/Starting-Stopping-multiple-instances-apachehttp://kief.com/running-multiple-tomcat-instances-on-one...原创 2012-08-15 14:10:42 · 138 阅读 · 0 评论 -
Hbase Miscellaneous
FAQ1. Lease does not existhttp://www.linuxlefty.com/SysAdmin/lease-does-not-exist-error-hbase-export.htmlHbase Performance Toolhttp://wiki.apache.org/hadoop/Hbase/PerformanceEvaluation...原创 2012-08-29 14:37:58 · 126 阅读 · 0 评论 -
Java 字符串本质
Java字符串本质上是char序列组成.char是一个采用UTF-16编码表示Unicode代码点的代码单元.大多数的常用Unicode字符使用一个代码元就可以表示,而辅助字符需要一对代码元表示.具体编码规范见 http://ilnba.iteye.com/admin/blogs/1612414 length方法将返回采用UTF-16编码表示的给定字符串所需要的代码单元数量. pub...原创 2012-09-20 15:14:27 · 406 阅读 · 0 评论 -
Solr tomcat setup
In the production env, we need to create sponge account to do below steps.for now, just use solr as example.Server is SOLRMASTER 1. Install JDK or JRE(1.6)2. Download the Solr and tomcat b...原创 2012-05-22 15:21:00 · 118 阅读 · 0 评论 -
Solr tomcat replication
SOLRMASTER MasterSOLRSLAVE1 SlaveSOLRSLAVE2 Slave 1. Add below replication handler to solrconfig.xml in the $SOLR_HOME dir for all 3 above servers.${solr.master.enable:false}sta...原创 2012-05-22 15:23:13 · 90 阅读 · 0 评论 -
Solr Jetty Replication
===========================================================How to build a Solr cluster(One Master, two Slaves)===========================================================1. Add below replication ...原创 2012-05-22 15:39:22 · 109 阅读 · 0 评论 -
Solr FQA
1. Question: sometimes the after closing the SolrServer, there is a file write.lock generated in the folder $INDEX_HOME/index/write.lock. Then next time, you want to start the server, there is an exce...原创 2012-06-14 18:37:09 · 92 阅读 · 0 评论 -
Java容器类
Java 容器快速报错(fail-fast)机制 如果你在迭代容器元素的过程时,有别的方法添加,删除或者修改了元素的值,这个时候就会抛出ConcurrentModificationException. 实现机制:以ArrayList为例,它调用iterator方法时候,其实是调用了AbstractList的iterator方法,返回了AbstractList的一个...原创 2012-12-11 16:28:54 · 128 阅读 · 0 评论 -
编程 感悟
1 运行时绑定的能力无论是java的继承方法重写,还是运用组合以达到子类覆盖父类的方法,还是spring的注入机制,还是sping的面向方向编程。所有这些东西都为了达到一个目的,那就是运行时绑定。确定运行时绑定的时机和方式对面向对象编程有着深刻的影响,是衡量一门语言是否成熟的标志。2 加入中间层。23种设计模式可以归结为一种核心思想,那就是代理模式。计算机中所有的复杂问题,如果引入...原创 2012-06-18 14:32:02 · 122 阅读 · 0 评论 -
Java 多线程
ThreadLocalhttp://blog.youkuaiyun.com/qjyong/article/details/2158097 http://lavasoft.blog.51cto.com/62575/51926/ http://lujh99.iteye.com/blog/103804 http://javarevisited.blogspot.hk/2012/05/...原创 2012-12-19 10:59:28 · 92 阅读 · 0 评论 -
java utf16 encoding
Unicode的码空间从U+0000到U+10FFFFUTF16分为17个多文种平面(multilingual plane),其中基本多文种平面的范围是0x0000-0xFFFF,其他的成为辅助文本平面.基本多文种平面的每个编码对应一个字符,或称作代码元,特殊的情况是:U+D800到U+DFFF之间的码位区段是永久保留不映射到字符,因此UTF-16利用保留下来的0xD800-0xDFF...原创 2012-07-30 16:41:32 · 146 阅读 · 0 评论 -
Hbase shell in practise
create 'test', {NAME => 'col', VERSIONS => 100}describe 'test'disable 'test'drop 'test'put 'test', '9993', 'col:EXCEPTION', '9993:1111:xxxxx'put 'test', '9993', 'col:EXCEPTION', '9993:1112...原创 2012-03-29 14:16:26 · 93 阅读 · 0 评论 -
Java Regex Tutorial
http://www.vogella.de/articles/JavaRegularExpressions/article.html原创 2012-03-21 12:06:22 · 81 阅读 · 0 评论 -
CDH3
CDH3 bookO'Reilly's 'Hadoop: The Definitive Guide'http://dl.dbank.com/c0hh1arjizhttp://down.51cto.com/data/221416#原创 2012-01-05 11:46:46 · 116 阅读 · 0 评论 -
jetty
http://www.blogjava.net/vcycyv/archive/2011/02/13/344214.htmlhttp://java.chinaitlab.com/ServletJsp/784448.htmlhttp://jetty.codehaus.org/jetty/http://www.theserverside.com/news/thread.tss...原创 2012-01-05 12:59:42 · 78 阅读 · 0 评论 -
SVN check out 不是java项目
如果从svn上check out出来的项目不是eclipse的java项目的话,可以修改.project file,直接加上黑色的配置就行了. emt-weblogic-11-latest ...原创 2012-01-12 16:00:38 · 158 阅读 · 0 评论 -
Flume usage list - How 2 submit shell command from Java API
[code="java"]FlumeShell shell = new FlumeShell();int aPort = FlumeConfiguration.get().getConfigAdminPort(); shell.executeLine("connect " + masters.get(0) + ":" + aPort);shell.executeLine(u...2012-02-03 11:20:30 · 95 阅读 · 0 评论 -
Hadoop study notes - balancer
# start-balancer.shstarting balancer, logging to /usr/local/hadoop_20_1/bin/../logs/hadoop-loginuserid-balancer-hostname.out#The -threshold argument specifies the threshold percentage that def...原创 2012-02-29 14:42:54 · 104 阅读 · 0 评论 -
Hadoop study notes - monitoring logging
Setting log levelsThere are 2 ways we can use to set log level.http://jobtracker-host:50030/logLevelThe same thing can be achieved from the command line as follows:% hadoop daemonlog -setlev...原创 2012-02-29 14:49:18 · 78 阅读 · 0 评论 -
Hadoop study notes - how to reformat hadoop hdfs
[size=medium][color=red]1 stop all the hbase or hadoop deamon[/color][/size]$stop-all.sh[size=medium][color=red]2 check the physical file system location[/color][/size]Hdfs-site.xml dfs.n...原创 2012-03-06 13:20:38 · 120 阅读 · 0 评论 -
Hadoop study notes - monitoring metrics
There is a good blog on this.[color=red][size=medium]http://www.cloudera.com/blog/2009/03/hadoop-metrics/[/size][/color]The HDFS and MapReduce daemons collect information about events and meas...原创 2012-03-06 13:21:10 · 107 阅读 · 0 评论 -
Hbase study notes - operation task
[color=red][size=medium]Node Decommissioning[/size][/color]1 $ ./bin/hbase-daemon.sh stop regionserverDisabling the Load Balancer Before Decommissioning a Nodehbase(main):001:0> balance_switch...原创 2012-03-08 14:36:14 · 113 阅读 · 0 评论 -
Hive + Hbase
在hive-site.xml里面有两个配置选项,配置好后可以应用hive执行到hbase集群 hive.aux.jars.path file:///app/java/hive/lib/hive-hbase-handler-0.7.1.jar,file:///app/java/hive/lib/hbase-0.90.3.jar,file:///app/java/hive/lib/...原创 2012-03-12 16:25:29 · 242 阅读 · 0 评论 -
VisualVM
VisualVM homehttp://visualvm.java.net/ How to start jstatd1. go to $JAVA_HOME/binvi jstatd.all.policy2. add below contentgrant codebase "file:${java.home}/../lib/tools.jar" {permission j...原创 2012-12-26 13:39:58 · 102 阅读 · 0 评论