2015年5月26日
摘要: vi /etc/inittab 将 id:5:initdefault: 中的 5 改成 3 阅读全文
posted @ 2015-05-26 19:24 BennyTian 阅读(409) 评论(0) 推荐(0) 编辑
  2015年5月15日
摘要: dubbo 项目用的 commons-dbcp-1.4 和 commons-pool-1.5.4 实现连接池,导致数据库经常爆满,经过调试,发现了个 dbcp的bug:dbcp 源码:BasicDataSource.java创建datasource的方法:protected synchronized... 阅读全文
posted @ 2015-05-15 17:22 BennyTian 阅读(5148) 评论(0) 推荐(0) 编辑
  2015年1月16日
摘要: 启动hadoop 的时候,可能会报错:The authenticity of host 192.168.0.xxx can't be established 解决方案是,在报错的机器上执行如下代码:ssh -o StrictHostKeyChecking=no 192.168.0.xxx 阅读全文
posted @ 2015-01-16 15:52 BennyTian 阅读(390) 评论(0) 推荐(0) 编辑
  2015年1月7日
摘要: package com.dubbo.analyzer.executor;import java.util.concurrent.ArrayBlockingQueue;import java.util.concurrent.RejectedExecutionHandler;import java.ut... 阅读全文
posted @ 2015-01-07 10:36 BennyTian 阅读(455) 评论(0) 推荐(0) 编辑
  2013年6月14日
摘要: jstl 启动报错:Unable to read TLD "META-INF/c.tld" from JAR file删除jsp-api.jar原文地址:http://blog.ilz.it/2007/12/28/unable-to-read-tld-meta-infctld-from-jar-file/ 阅读全文
posted @ 2013-06-14 15:16 BennyTian 阅读(165) 评论(0) 推荐(0) 编辑
  2013年5月29日
摘要: hadoop-0.20.205.0 下 安装hive-0.10.0 :hive 启动的时候, 报错如下:Exception in thread "main" java.lang.NoSuchFieldError: ALLOW_UNQUOTED_CONTROL_CHARS at org.apache.hadoop.hive.ql.udf.generic.GenericUDTFJSONTuple.<clinit>(GenericUDTFJSONTuple.java:59) at sun.reflect.NativeConstructorAccessorImpl.ne 阅读全文
posted @ 2013-05-29 17:40 BennyTian 阅读(1230) 评论(0) 推荐(0) 编辑
  2013年5月22日
摘要: 新浪微博 官网sdk .在调用public Status UploadStatus(String status, ImageItem item) 这个接口发布带图片的微博时,出现如下异常:weibo4j2.model.WeiboException: 400:The request was invalid. An accompanying error message will explain why. This is the status code will be returned during rate limiting. error:does multipart has image? er. 阅读全文
posted @ 2013-05-22 14:15 BennyTian 阅读(1559) 评论(0) 推荐(0) 编辑
  2013年5月3日
摘要: 1.下载lrzsz-0.12.20.tar.gzwget http://down1.chinaunix.net/distfiles/lrzsz-0.12.20.tar.gz2.解压tar zxvf lrzsz-0.12.20.tar.gz3.安装配置cd lrzsz-0.12.20./configu... 阅读全文
posted @ 2013-05-03 09:37 BennyTian 阅读(433) 评论(0) 推荐(0) 编辑
  2013年4月7日
摘要: java读取hdfs时报错:Wrong FS: hdfs://centos1:9000/user/hadoop/input, expected: file:///首先确认 是用FileSystem.get(conf) 而不是FileSystem.getLocal(conf) 初始化的 FileSystem 对象.如果还有问题: 把集群里的 core-site.xml mapped-site.xml hdfs-site.xml slaves 等文件拷贝到eclipse 配置的 Hadoop 目录里.//hdfs://centos1:9000//user/hadoop/input hdfs://c 阅读全文
posted @ 2013-04-07 18:43 BennyTian 阅读(1564) 评论(0) 推荐(0) 编辑
  2013年3月27日
摘要: 貌似 Pig 的安装/使用 相对于 hadoop 简单多了..1. 官网下载:http://pig.apache.org/releases.html 我下载的是 .tar 包, 直接解压就ok了:tar -zxvf pig-x.x.x 环境变量: /etc/profile ,只要设置 JAVA_HOME 和 HADOOP_HOME 就够了,namenode 和 job 会自动寻找. 到此就结束安装了.export JAVA_HOME=/usr/java/jdk1.6.0_33export PATH=$PATH:$JAVA_HOME/binexport HADOOP_HOME=/usr/l... 阅读全文
posted @ 2013-03-27 19:51 BennyTian 阅读(216) 评论(0) 推荐(0) 编辑