tachyon 命令行接口


Usage: tachyon COMMAND 
where COMMAND is one of:
  format [-s]         格式化Format Tachyon (如果指定 -s 参数,表示在 underfs 不存在时进行)
  bootstrap-conf      生成一个配置文件,如果不存在
  tfs                 命令行客户端
  loadufs             加载三、Tachyon命令行操作现有的底层文件系统到Tachyon
  runTest             运行一个终端到终端的测试中的Tachyon集群
  runTests            运行所有的终端到终端的测试中的Tachyon集群上
  killAll <WORD>      杀死包WORD进程
  copyDir <PATH>      复制PATH到所有节点
  clearCache          清除操作系统缓存
  thriftGen           生成所有 thrift 代码
  version             打印Tachyon版本

命令行操作

1.创建文件夹

tachyon tfs mkdir /test

2.创建文件

tachyon tfs touch /test/test.txt

3.上传本地文件

tachyon tfs copyFromLocal /etc/passwd /test/passwd

4.查看目录

tachyon tfs ls /test
tachyon tfs lsr /test

5.查看文件信息

tachyon tfs fileinfo /test/passwd

6.查看文件内容

tachyon tfs cat /test/passwd |head -n 2
tachyon tfs tail /test/passwd |head -n 2

7.查看目录下文件个数

tachyon tfs count /test

8.在内存注册和取消注册文件和文件夹

tachyon tfs pin /test
tachyon tfs unpin /test

9.移动文件

tachyon tfs mv/test/passwd /test/admln/passwd

10.下载文件到本地

tachyon tfs copyToLocal /test/passwd /tmp/tachyon.txt

11.删除文件

tachyon tfs rm /test/two

删除文件和删除文件夹都是这个命令


 

转载于:https://www.cnblogs.com/admln/p/tachyon-command-interface.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值