摘要:
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
阅读(209)
评论(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
阅读(6009)
评论(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
阅读(944)
评论(0)
推荐(0)
摘要:
1、遍历删除本地目录 2、文件末尾追加内容 3、按行读取文件内容 阅读全文
posted @ 2016-11-18 11:17
life_start
阅读(272)
评论(0)
推荐(0)

浙公网安备 33010602011771号