天天看点

HBase Shell 操作 | 学习笔记

开发者学堂课程【分布式数据库 HBase 快速入门:HBase Shell 操作】学习笔记,与课程紧密联系,让用户快速学习知识。

课程地址:

https://developer.aliyun.com/learning/course/101/detail/1781

HBase Shell 操作

内容介绍

一、基本操作

二、表的操作

一.基本操作

1.进入 HBase 客户端命令行

[atguigu@hadoop102 hbase ] $ bin / hbase shell

2.查看帮助命令

hbase ( main ):001:0> help 

3.查看当前数据库中的表

hbase ( main ):002:0>list

二.表的操作

1.创建表

hbase ( main ):002:0> create “student “,” info “

2.播入数据到表

hbase (main ):003:0> put “student “ , ”1001” , ”info : sex“ , “ male “

hbase ( main ):004:0> put “student” , “1001” , “info : age” , “18”

hbase ( main ):005:0> put”student” , "1002” , “info : name” , “ Janna”

hbase( main ):006:0> put”student” , “1002” , “ info : sex“ , ”fenale “

hbase ( main ):007:0> put” student” ,"1002" , “ info : age” , “20”