zoukankan      html  css  js  c++  java
  • 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

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


    欲为大树,何与草争;心若不动,风又奈何。
  • 相关阅读:
    rails路由
    RRD.so文件 rrdruby
    windows rails new demo时候出错Make sure that `gem install mysql2 -v '0.3.15'` succeeds before bundling.
    d3js把circle和rect连接在一起
    ubuntu 12.04 rails server 时候报错 execjs
    mysql2
    rails rake 版本问题
    rails下mysql出错问题mysql_api,blog/text
    ubuntu安装mysql
    vmware下ubuntu不能上网 => 恢复默认虚拟网络
  • 原文地址:https://www.cnblogs.com/admln/p/tachyon-command-interface.html
Copyright © 2011-2022 走看看