ntp time server

搭建时钟同步服务器 这里选择 cdh1 节点为时钟同步服务器,其他节点为客户端同步时间到该节点。安装ntp: $ yum install ntp 修改 cdh1 上的配置文件 /etc/ntp.conf : restrict default ignore  ... Read More | Share it now!

java中的 FileWriter类 和 FileReader类的一些基本用法

java中的 FileWriter类 和 FileReader类的一些基本用法 1,FileWriter类(字符输出流类) 构造方法:FileWriter fw = new FileWriter(String... Read More | Share it now!

Linux swap/home/root分区 大小

周氏一族,整理技术文档,给下一代留点教程…… 采用系统默认最下化安装的同学都知道,基本上home的分区大得要命,可现实中,我们home不需要那么大,我们的大部分数据是放在 /... Read More | Share it now!

out of Memory Error in Hadoop

http://stackoverflow.com/questions/8464048/out-of-memory-error-in-hadoop I am getting the following Exception java.lang.OutOfMemoryError: Java heap space Please suggest a solution so that i can try out the example. The entire Exception is listed below.... Read More | Share it now!

Java Ant build.xml详解

1,什么是ant ant是构建工具 2,什么是构建 概念到处可查到,形象来说,你要把代码从某个地方拿来,编译,再拷贝到某个地方去等等操作,当然不仅与此,但是主要用来干这个 3,ant的好处 跨平台  ... Read More | Share it now!

JCE cannot authenticate the provider BC

// // // // // Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC at javax.crypto.Cipher.getInstance(Cipher.java:657) at javax.crypto.Cipher.getInstance(Cipher.java:596) at... Read More | Share it now!

Linux中查看各文件夹大小命令 estimate file space usage

du -h –max-depth=1 NAME du – estimate file space usage SYNOPSIS du … … EXAMPLES DESCRIPTION Summarize disk usage of each FILE, recursively for directories. Mandatory arguments to long options are mandatory for short options... Read More | Share it now!

log4j详解与实战

http://www.iteye.com/topic/378077   log4j是一个非常强大的log记录软件,下面我们就来看看在项目中如何使log4j。 首先当然是得到log4j的jar档,推荐使用1.2.X版,下载地址: http://logging.apache.org/log4j/1.2/download.html 我们先看一个最简单的示例: 【示例1】 项目结构: 【注:由于这里的多个项目公用一个jar档,我们可以创建一个专门放置jar档的Java工程,然后将jar档放到lib目录下。在要使用的工程中按图所示进行引用 】 Java代码: package... Read More | Share it now!

Oozie Shell Action 配置

Shell Action Shell action运行一个shell命令,需要配置的有job-tracker,name-node和一些必要的参数。 经过配置,在启动Shell... Read More | Share it now!