初次接触Impala,了解到以下几个知识点:
1、连接采用JDBC方式,除了加载驱动不同、连接URL不同、查询语句不同,其他都与JDBC查询关系型数据库一样。
2、Impala分页查询语句,例如:select * from table34201 order by createtime limit 10 offset 0 。 其中,分页必须要order by 。limit 表示每页数据条数,offset表示页码,从0开始。
3、Impala查询某张表总数,select count(1) countnum from table34201 。
示例代码下载地址:http://download.youkuaiyun.com/download/xinjirufen1/9909183