摘要: 按照链接http://blog.csdn.net/qq_32166627/article/details/51823928 安装完成hive后,如果启动的时候碰到message:Hive Schema version 2.1.0 does not match错误,那么就需要进入/$HIVE... 阅读全文
posted @ 2018-03-03 22:45 老去的JAVA程序员 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 二:更改hive表结构语句: 1:更改表名称,使用rename toalter table test_another_location rename to test_location; 阅读全文
posted @ 2015-01-25 21:34 老去的JAVA程序员 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 一:hive建表语句create table page_view(page_id bigint comment '页面ID',page_name string comment '页面名称',page_url string comment '页面URL')comment '页面视图'parti... 阅读全文
posted @ 2015-01-02 16:13 老去的JAVA程序员 阅读(4245) 评论(0) 推荐(0) 编辑
摘要: 目前在MySQL里建表的时候,通常使用如下的方式:create student (student_id int(10) not null auto_increment,name varchar(20),sex varchar(2),birthday varchar(20),primary ... 阅读全文
posted @ 2013-09-01 17:34 老去的JAVA程序员 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 先来看下JAXB入门资料:http://popomonkey.iteye.com/blog/684285 接下来,直接来看例子: package javaToXml;import java.util.Set;import javax.xml.bind.annota... 阅读全文
posted @ 2013-03-23 15:35 老去的JAVA程序员 阅读(231) 评论(0) 推荐(0) 编辑
摘要: public class ClassUtil { private static final String METHOD_PREFIX = "get"; // 约定俗称的getter()方法前缀 /** * 根据field名称获取field的值 * 当field允许... 阅读全文
posted @ 2012-09-13 16:01 老去的JAVA程序员 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 参见 http://jingyan.baidu.com/article/7c6fb4285e041680642c90e6.html 阅读全文
posted @ 2012-09-12 20:50 老去的JAVA程序员 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 对复杂语句可以用sql包含的关系来完成,例如: include refid="test"/> 对于不确定的sql可以使用动态判定的办法: isNotEmpty、isEqual 如果要循环一个列表的话(目前Ibatis只支持list循环)#property 如果要添加order ... 阅读全文
posted @ 2012-09-09 19:42 老去的JAVA程序员 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 在Python里,或许我们没有这个烦恼,因为python里已经为我们提供了intersection这样的方法。 但是在Java里,就需要我们动一番脑筋了。这里浓重推荐下apache的CollectionUtils工具类。 方法签名如下所示: org.ap... 阅读全文
posted @ 2012-09-09 19:36 老去的JAVA程序员 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 首先来看浮动定位的例子: 查看详情 CSS代码如下所示: .content{ width:100px; text-align:center; margin:100px;}.linkHred{ position:relative;}.tips{ height:43px; width:178p... 阅读全文
posted @ 2012-09-09 18:51 老去的JAVA程序员 阅读(155) 评论(0) 推荐(0) 编辑