Monthly Archives: March 2016

scp 命令

================== scp 命令 ================== scp 可以在 2个 linux 主机间复制文件; 命令基本格式: scp file_source file_target ====== 从 本地 复制到 远程 ====== * 复制文件: * 命令格式: scp local_file... Read More | Share it now!

Hadoop Error: java.io.IOException: Filesystem closed

Hortonworks Error Log 2014-05-20 17:29:32,242 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:lpinsight (auth:SIMPLE) cause:java.io.IOException: Filesystem closed 2014-05-20 17:29:32,243 WARN... Read More | Share it now!

Linux date命令的用法

在linux shell编程中,经常用到日期的加减运算 以前都是自己通过expr函数计算,很麻烦 其实date命令本身提供了日期的加减运算 非常方便。例如:得到昨天的时间 date +%Y%m%d –date=”-1... Read More | Share it now!

jConsole – JMX remote access on Tomcat

http://www.mkyong.com/tomcat/jconsole-jmx-remote-access-on-tomcat/ In this tutorial, we will show you how to use jConsole to remote access a Tomcat instance, for JVM monitoring stuff. Tools and environment used : Ubuntu 13 + Tomcat 7 +... Read More | Share it now!

javascript获取随机颜色

http://www.cnblogs.com/rubylouvre/archive/2009/09/24/1572977.html   在制作饼图或标签云时,我们通常需要很多颜色,方法有二。一是准备一组漂亮的候选颜色,二是随机生成颜色。在数量很多或不明确时,我想后者就是唯一的出路了。谷歌了一下,整理如下,按由浅入深的顺序排列。 实现1 var... Read More | Share it now!

recursive java

package com.testcases; import java.util.ArrayList; /** * Created by shiyanghuang on 16/3/8. */ public class recursive { static int MAX_LEVEL = 5; static ArrayList data = new ArrayList(); public void rc(ArrayList result,... Read More | Share it now!

Java反射中Method类invoke方法的用法

ToBeReflact.java package com.testcases.reflaction; /** * Created by shiyanghuang on 16/3/2. */ public class ToBeReflact { private String name; ToBeReflact() { this.name = "Default"; } ToBeReflact(String name) { ... Read More | Share it now!