上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: Configuration conf=new Configuration(); String zookeeper=""; String clientport="2181"; String tableName="pbtest"; String rowkey="22977609"; conf.set(HBASE_ZOO... 阅读全文
posted @ 2016-12-01 14:27 life_start 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 百度经验连接(亲测可用) http://jingyan.baidu.com/article/380abd0a77ae041d90192cf4.html win7下如何建立ftp服务器 http://jingyan.baidu.com/article/574c5219d466c36c8d9dc138. 阅读全文
posted @ 2016-11-28 15:41 life_start 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(5976) 评论(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 阅读(933) 评论(0) 推荐(0) 编辑
摘要: 1、遍历删除本地目录 2、文件末尾追加内容 3、按行读取文件内容 阅读全文
posted @ 2016-11-18 11:17 life_start 阅读(267) 评论(0) 推荐(0) 编辑
摘要: /** index mappingname originalname datatype family 0 task_id taskIndexCode STRING info 1 task_type resourceDescType INT32 info 2 camera_index_code cam 阅读全文
posted @ 2016-11-08 19:15 life_start 阅读(243) 评论(0) 推荐(0) 编辑
摘要: /** * 通过正则获取该目录下满足条件的所有目录 * @param luceneFilePathRegular 正则目录,如/user/solrindex/正则表达式 * @return 满足正则表达式的目录集合 list */ public static List fetchDirByRegularLinux(String luceneFi... 阅读全文
posted @ 2016-11-08 18:52 life_start 阅读(147) 评论(0) 推荐(0) 编辑
摘要: package com.hikvision.java.array; import java.util.ArrayList; import java.util.Arrays; /** 关于数组的常用处理方法 */ public class ArrayUtils { public static void 阅读全文
posted @ 2016-10-31 18:58 life_start 阅读(199) 评论(0) 推荐(0) 编辑
摘要: package com.hikvision.java.file.filesize;/* * Project: HbaseTest * Address: http://www.hikvision.com * Date: 2016/10/31 10:02 * Description: This content is limited to use in Hikivision Research ... 阅读全文
posted @ 2016-10-31 11:05 life_start 阅读(484) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页