摘要: 一、启动命令 启动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) 编辑