上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 第一节:原子数据类型 9种 整型4种 :tinyint、smallint、int、bigint 浮点型:float 、double 布尔:boolean 字符串:string 时间戳:timestamp 第二节:复杂数据类型 一、简介 所有的复杂数据类型都是由原子数据类型构成 二、array 1、概 阅读全文
posted @ 2019-06-16 23:21 快乐的张小凡 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 第一节:数据库 Hive的数据库同mysql中的数据库,将数据进行细化管理,不同业务模块的数据放在一个数据库中。 第二节:数据表 一、按管理权限分 1、内部表 管理权限是hive自己,hive对表中的数据(原始数据)有绝对的增删权限的。内部表在进行删除表的时候,表中的数据(hdfs对应的目录)会被删 阅读全文
posted @ 2019-06-16 23:17 快乐的张小凡 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 第一节:hive的产生背景 mapreduce处理的绝大多数的数据,都是格式化的数据。格式化的数据的处理sql最擅长。mapjoin reducejoin的开发代码要写40行,而sql就一个sql语句就可以了,例如:select * from a join b on a.id=b.id;。 mapr 阅读全文
posted @ 2019-06-16 23:14 快乐的张小凡 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 一、启动命令 启动hadoop:start-dfs.sh,start-yarn.sh 关闭hadoop:stop-dfs.sh,stop-yarn.sh 启动hdfs时可在任意节点,启动yarn得在相应yarn的主节点上执行 hadoop fs -命令(hadoop1.0的时候用的) hdfs df 阅读全文
posted @ 2019-06-09 22:10 快乐的张小凡 阅读(1853) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Group name: dml Commands: append, count, delete, deleteall, get, get_counter, get_splits, incr, put, scan, truncate, truncate_preserve 二、添加数据 行键 阅读全文
posted @ 2019-06-09 22:07 快乐的张小凡 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Group name: ddl Commands: alter, alter_async, alter_status, create, describe, disable, disable_all, drop, drop_all, enable, enable_all, exists, g 阅读全文
posted @ 2019-06-09 22:05 快乐的张小凡 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 一、简介 hbase中没有数据库概念,hbase中有namespace相当于hive中的数据库。 Group name: namespace Commands: alter_namespace, create_namespace, describe_namespace, drop_namespace 阅读全文
posted @ 2019-06-09 22:03 快乐的张小凡 阅读(2371) 评论(0) 推荐(0) 编辑
摘要: 进入hbase的客户端:安装过hbase的节点都可以 进入客户端命令:hbase shell hbase的客户端操作界面:hbase(main):001:0> 查看帮助命令:help 查询相关命令的帮助:help command ctrl+backspace是删除 阅读全文
posted @ 2019-06-09 22:02 快乐的张小凡 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 导入:传统关系型数据库 >大数据平台的importmysql >hadoop--connect 指定关系型数据库链接url mysql:jdbc://hadoop02:3306/--username 指定数据库的用户名--password 指定数据库的密码--table 指定要导出数据的mysql数 阅读全文
posted @ 2019-06-09 21:54 快乐的张小凡 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1、建库 create database mydb; create database if no exists mydb; create database if no exists mydb location "/aa/bb"; 2、查询数据库 查询库列表:show databases; 查询库详细 阅读全文
posted @ 2019-06-09 21:50 快乐的张小凡 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页