Hadoop-shell命令////Hbase-shell命令

在 hdfs 中创建目录 /tmp /user /usr

 

 

 

使用 put 命令上传文件到 hdfs

hadoop dfs -put test.txt /tmp/

 

查看 hdfs 中 test.txt 文件内容

hadoop dfs -tail /tmp/test.txt

 

显示文件 test.txt 大小

hadoop dfs -du /tmp/test.txt

查看 hdfs 中/tmp 文件信息

hadoop dfs -ls /tmp

修改 hdfs 中 test.txt 文件权限为全部拥有,并验证

hadoop dfs -chmod 777 /tmp/test.txt

查看 hdfs 中/tmp 文件信息

hadoop dfs -ls /tmp

 

使用 get 命令下载文件到本地

hadoop dfs -get /tmp/test.txt /root/qianjin/

 

 

 

将 hdfs 中 test.txt 复制到 hdfs /user 目录下

hadoop dfs -cp /tmp/test.txt /user/

 

重命名 test.txt

hadoop dfs -mv /tmp/test.txt /tmp/test02.txt

 

 Hbase shell

 create:创建表,yg:表名,jb,gz,qt:列族名

 

list:查看一共有哪些表

 

 

 

 

 

 

 先禁用

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值