上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
  2016年8月11日
摘要: <configuration><property><name>hbase.rootdir</name><value>hdfs://gagcluster/hbase</value></property><property><name>hbase.zookeeper.property.dataDir</ 阅读全文
posted @ 2016-08-11 15:18 山高似水深 阅读(452) 评论(0) 推荐(0) 编辑
  2016年8月10日
摘要: 1 看文件大小:du -sm * | sort -n 2 合并多个文件,可以跨文件夹合并:cat *_.txt >> news.txt 3 给文件改编码:iconv -f GBK -t UTF-8 原文件名 -o 新文件名 4 查找文件内容:grep "thermcontact" */*.in 5 批量解压:ls *.tar.gz | xargs -n1 tar xzvf 6 看硬盘剩余:du ... 阅读全文
posted @ 2016-08-10 10:14 山高似水深 阅读(475) 评论(0) 推荐(0) 编辑
  2016年8月9日
摘要: private static String concat(String tag,String Time) { // TODO Auto-generated method stub // return new StringBuilder(tag.length() + Time.length()) // .append(tag).append(Time).toString(); retu... 阅读全文
posted @ 2016-08-09 17:28 山高似水深 阅读(860) 评论(0) 推荐(0) 编辑
摘要: public static boolean isAngle(String str){ if(str.getBytes().length==str.length()){ //全是半角 return true; } return false; ... 阅读全文
posted @ 2016-08-09 17:27 山高似水深 阅读(2029) 评论(1) 推荐(1) 编辑
摘要: public static int appearNumber(String srcText, String findText) { int count = 0; int index = 0; while ((index = srcText.indexOf(findText, index)) != -1) { index... 阅读全文
posted @ 2016-08-09 17:26 山高似水深 阅读(1952) 评论(0) 推荐(0) 编辑
摘要: public static boolean isContainChinese(String str) { Pattern p = Pattern.compile("[\u4e00-\u9fa5a-zA-Z]"); Matcher m = p.matcher(str); if (m.find()) { return t... 阅读全文
posted @ 2016-08-09 17:25 山高似水深 阅读(258) 评论(0) 推荐(0) 编辑
摘要: public static boolean isMobile(String str) { Pattern p = null; Matcher m = null; boolean b = false; p = Pattern.compile("^[1][3,4,5,8][0-9]{9}$"); // 验证手机号 ... 阅读全文
posted @ 2016-08-09 17:00 山高似水深 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Hadoop集群的各部分一般都会使用到多个端口,有些是daemon之间进行交互之用,有些是用于RPC访问以及HTTP访问。而随着Hadoop周边组件的增多,完全记不住哪个端口对应哪个应用,特收集记录如此,以便查询。 这里包含我们使用到的组件:HDFS, YARN, HBase, Hive, ZooK 阅读全文
posted @ 2016-08-09 16:50 山高似水深 阅读(6163) 评论(0) 推荐(1) 编辑
摘要: core-site.xml hdfs-site.xml mapred-site.xml yarn-site.xml hadoop-env.sh hive-env.sh hive-site.xml hbase-site.xml zoo.cfg 阅读全文
posted @ 2016-08-09 16:39 山高似水深 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: 之前在网上搜索到的全部单位好像都是byte的,看起来很麻烦,然后自己看了下 hadoop fs -help hadoop fs -du -h / hadoop fs -du -h /tmp 很简单明了,前面的数字即为目录所占空间的大小,后面的因为我前期 备份数为3 后期改为2 所以可能会不一样 阅读全文
posted @ 2016-08-09 16:26 山高似水深 阅读(69960) 评论(2) 推荐(5) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

购买方式 点击下面图标购买