09 2021 档案

摘要:row format delimited fields terminated by '\t' 创建表时以\t 作为分隔符 location '/student'创建表时设置表的路径 insert overwrite local directory '/opt/module/hive/data/exp 阅读全文
posted @ 2021-09-28 17:27 {hunter}ZY 阅读(114) 评论(0) 推荐(0) 编辑
摘要:hdfs:客户端:192.168.10.102:9870 服务端:192.168.10.102:8020 yarn:客户端:192.168.10.103:8088 服务端:192.168.10.103:8032 历史服务器:客户端:192.168.10.102:19888 阅读全文
posted @ 2021-09-27 15:52 {hunter}ZY 阅读(85) 评论(0) 推荐(0) 编辑
摘要:hive模糊查询 在Mysql中使用的 like '%刘%' 模糊查询 在Hive中不适用 ,应该写成 select * from table where name like concat("%","刘","%") ; 阅读全文
posted @ 2021-09-26 21:40 {hunter}ZY 阅读(88) 评论(0) 推荐(0) 编辑
摘要:java setattribute用法: setAttribute这个方法,在JSP内置对象session和request都有这个方法,这个方法作用就是保存数据,然后还可以用getAttribute方法来取出。 比如现在又个User对象,User curruser = new User("zhang 阅读全文
posted @ 2021-09-22 20:29 {hunter}ZY 阅读(74) 评论(0) 推荐(0) 编辑
摘要:response重定向。 Response对象 * 功能:设置响应消息 1. 设置响应行 1. 格式:HTTP/1.1 200 ok 2. 设置状态码:setStatus(int sc) 2. 设置响应头:setHeader(String name, String value) 3. 设置响应体: 阅读全文
posted @ 2021-09-21 21:13 {hunter}ZY 阅读(97) 评论(0) 推荐(0) 编辑
摘要:Hive报错"Expression not in GROUP BY key"的解决方案 hive写查询语句时如果需要分组,且有些查询的列不需要变化,那么直接写会报错,需要写成collect_set("列名")[0] as "列名" 例如SELECT id, latitude, longitude F 阅读全文
posted @ 2021-09-20 20:28 {hunter}ZY 阅读(2252) 评论(0) 推荐(0) 编辑
摘要:hive数据类型 Hive 数据类型 Java 数据类型 长度 例子 TINYINT byte 1byte 有符号整数 20 SMALINT short 2byte 有符号整数 20 INT int 4byte 有符号整数 20 BIGINT long 8byte 有符号整数 20 BOOLEAN 阅读全文
posted @ 2021-09-18 19:55 {hunter}ZY 阅读(74) 评论(0) 推荐(0) 编辑
摘要:hive常用交互命令 [atguigu@hadoop102 hive]$ bin/hive -help usage: hive -d,--define <key=value> Variable subsitution to apply to hive commands. e.g. -d A=B or 阅读全文
posted @ 2021-09-17 20:53 {hunter}ZY 阅读(48) 评论(0) 推荐(0) 编辑
摘要:Map Reduce概述 1、InputFormat 1)默认的是TextInputformat kv key偏移量,v :一行内容 2)处理小文件CombineTextInputFormat 把多个文件合并到一起统一切片 2、Mapper setup()初始化; map()用户的业务逻辑; cle 阅读全文
posted @ 2021-09-16 20:15 {hunter}ZY 阅读(76) 评论(0) 推荐(0) 编辑
摘要:jar包在Linux环境运行 hadoop jar jar包相对路径 运行的main类 main的参数 阅读全文
posted @ 2021-09-15 19:16 {hunter}ZY 阅读(53) 评论(0) 推荐(0) 编辑
摘要:import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.*;import org.junit.After;import org.junit.Before;import org.junit.Test; import 阅读全文
posted @ 2021-09-13 20:11 {hunter}ZY 阅读(76) 评论(0) 推荐(0) 编辑
摘要:运行hdfs导入的依赖 <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>3.1.3</version> </dependency> <dependenc 阅读全文
posted @ 2021-09-12 20:51 {hunter}ZY 阅读(97) 评论(0) 推荐(0) 编辑
摘要:安装 epel-release :(Extra Packages for Enterprise Linux 是为“红帽系”的操作系统提供额外的软件包,适用于 RHEL、CentOS 和 Scientific Linux。相当于是一个软件仓库,大多数 rpm 包在官方repository 中是找不到的 阅读全文
posted @ 2021-09-10 22:25 {hunter}ZY 阅读(50) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示