摘要: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; /** * 所有配置项,配置加载与获取类 */ publ... 阅读全文
posted @ 2016-11-18 11:25 life_start 阅读(204) 评论(0) 推荐(0) 编辑
摘要: package com.da.hbase.tool.utils; import com.da.hbase.tool.common.Const; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; i... 阅读全文
posted @ 2016-11-18 11:22 life_start 阅读(5979) 评论(0) 推荐(0) 编辑
摘要: /** * 由SshConfig配置获取一个Session * @param conf * @return */ public static Session createSession(SshConfig conf){ LOG.info("try connect to " + conf.getHostIp() + ",usern... 阅读全文
posted @ 2016-11-18 11:20 life_start 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 1、遍历删除本地目录 2、文件末尾追加内容 3、按行读取文件内容 阅读全文
posted @ 2016-11-18 11:17 life_start 阅读(267) 评论(0) 推荐(0) 编辑