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

tachyon 命令行接口

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

tachyon 命令行接口

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

tachyon tfs pin /test
tachyon tfs unpin /test

tachyon 命令行接口

9.移动文件

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

10.下载文件到本地

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

11.删除文件

tachyon tfs rm /test/two

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


 

相关文章:

  • 2022-02-18
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2021-07-26
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案