代码改变世界

随笔档案-2015年08月

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections

2015-08-31 14:39 by 【戈多】, 1797 阅读, 收藏,
摘要: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections at com.mysql.jdbc.SQLError.createSQLException(SQLError.jav... 阅读全文

java 执行 hive sql

2015-08-25 11:32 by 【戈多】, 811 阅读, 收藏,
摘要: String sql="select * from t_pub_uid limit 10"; List command = new ArrayList(); command.add("hive"); command.add("-e"); ... 阅读全文

git 第四天 通过git客户端给github提交文件

2015-08-24 10:34 by 【戈多】, 378 阅读, 收藏,
摘要: 在E:\git\目录下 编辑文件README.md右键运行 git bashgit init初始化该目录为本地仓库git add README.md添加文件git commit -m "first commit"提交文件结果失败,需要config配置 user.emali 和 user.namegi... 阅读全文

git 第三天 SSH免密码登录 2

2015-08-23 21:34 by 【戈多】, 171 阅读, 收藏,
摘要: 公钥已经生成,github设置SSH keyssh key 已经添加 还没有激活 显示是灰色的右键 git bash 输入 ssh git@github.com然后输入yes再刷新页面,已激活,显示为绿色。 阅读全文

git 第三天 SSH免密码登录 1

2015-08-23 21:33 by 【戈多】, 245 阅读, 收藏,
摘要: 由于github提供的http协议访问,每次都需要输入用户名和密码比较麻烦而采用git协议,需要配置SSH的免密码登陆,这样就不用每次输入密码了右键 运行Git Bash输入:ssh-keygen然后一直回车键目录:C:\Users\godot\.ssh godot为我这台电脑的用户该目录下会生成 ... 阅读全文

git 第二天 注册git服务端(github)并创建远程仓库

2015-08-23 20:33 by 【戈多】, 240 阅读, 收藏,
摘要: https://github.com/创建远程仓库http协议地址:https://github.com/gittest2015/test.gitgit协议地址:git@github.com:gittest2015/test.git 阅读全文

git 第一天 windows客户端安装

2015-08-22 21:33 by 【戈多】, 184 阅读, 收藏,
摘要: https://git-for-windows.github.io/网络不通也可以用百度搜索 git客户端选择use git from the windows command prompt右键看到Git相关命令即安装成功 阅读全文

java 创建并写入文件

2015-08-21 09:39 by 【戈多】, 221 阅读, 收藏,
摘要: StringBuffer sb = new StringBuffer(); OutputStreamWriter out1; out1 = new OutputStreamWriter(new FileOutputStream("E:\\test.txt"),... 阅读全文

隐藏 HttpClient 在console的日志

2015-08-20 15:55 by 【戈多】, 5936 阅读, 收藏,
摘要: java.util.logging.Logger.getLogger("org.apache.http.wire").setLevel(java.util.logging.Level.FINEST);java.util.logging.Logger.getLogger("org.apache.htt... 阅读全文

HOW TO CHANGE THE DEFAULT KEY-VALUE SEPARATOR OF A MAPREDUCE JOB

2015-08-05 11:19 by 【戈多】, 224 阅读, 收藏,
摘要: The default MapReduce output format,TextOutputFormat, writes records as lines of text. Its keysand values may be of any type, since TextOutputFormat t... 阅读全文

java 时间戳转换

2015-08-05 10:22 by 【戈多】, 179 阅读, 收藏,
摘要: public static String getDate(String unixDate) { String date = ""; try { date = new java.text.SimpleDateFormat("yyyy-MM-dd hh:... 阅读全文