博客
关于我
Ozone作为Hadoop FileSystem的配置使用
阅读量:397 次
发布时间:2019-03-05

本文共 1776 字,大约阅读时间需要 5 分钟。

Ozone FileSystem?Hadoop??????????

??Hadoop???????????Ozone?????K-V?????????????????????Hadoop??????Ozone???Hadoop???????HCFS????????????Job?Spark????FileSystem????????Ozone???K-V????????????????????Ozone??????????????Ozone FileSystem????????????

Ozone FileSystem??????????namespace???????bucket???????OzoneFileSystem???????bucket???????????????????Key????????

  • ??????bucket?????Key??Value??????Key?
  • ??????bucket?????Key??Value???Key?
  • ??????????Key??????????testdir/????????testdir/testfile?

???????Ozone FileSystem???Hadoop FileSystem??????????????????????

???????????????????

  • ??Hadoop????Hadoop-2.7???

  • ??Hadoop???

    • ??core-site.xml??????????
      fs.o3fs.impl
      org.apache.hadoop.fs.ozone.BasicOzoneFileSystem
      fs.AbstractFileSystem.o3fs.impl
      org.apache.hadoop.fs.ozone.OzFs
      fs.defaultFS
      o3fs://buckettest.volumetest
    • ??hadoop-env.sh?????ClassPath???
      export HADOOP_CLASSPATH=/home/hdfs/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-legacy-0.5.0-SNAPSHOT.jar:$HADOOP_CLASSPATH
  • ???Ozone?????????volume?volumetest??bucket?buckettest?

  • ?????????????

    • ?????
      hadoop fs -put testfile o3fs://buckettest.volumetest.lyq-m2-xx.xx.xx.xx/testdir/
    • ?????
      hadoop fs -mkdir o3fs://buckettest.volumetest.lyq-m2-xx.xx.xx.xx/testdir/subdir
    • ?????
      hadoop fs -mv o3fs://buckettest.volumetest.lyq-m2-xx.xx.xx.xx/testfile o3fs://buckettest.volumetest.lyq-m2-xx.xx.xx.xx/testfile2
      hadoop fs -rm o3fs://buckettest.volumetest.lyq-m2-xx.xx.xx.xx/testfile2

    ???????Ozone FileSystem???????????????chown?setquota????????????

    ??????Ozone FileSystem???????????????????????????????

    转载地址:http://ckng.baihongyu.com/

    你可能感兴趣的文章
    php基本符号大全
    查看>>
    php增删改查封装方法
    查看>>
    php多条件筛选功能的实现
    查看>>
    php多线程
    查看>>
    PHP大数组循环-避免产生Notice或者是Warning
    查看>>
    PHP大数组过滤元素、修改元素性能分析
    查看>>
    PHP大文件切片下载代码
    查看>>
    php如何定义的数位置,php如何实现不借助IDE快速定位行数或者方法定义的文件和位置...
    查看>>
    RabbitMQ集群 - 普通集群搭建、宕机情况
    查看>>
    PHP如何生成唯一的数字ID
    查看>>
    PHP如何获取当前页面的最后修改时间
    查看>>
    PHP如何读取json数据
    查看>>
    PHP字符串
    查看>>
    PHP字符串递增
    查看>>
    php学习之基础语法
    查看>>
    RabbitMQ集群 - 仲裁队列、Raft协议(最详细的选举流程)
    查看>>
    PHP学习总结(11)——PHP入门篇之WAMPServer多站点配置
    查看>>
    PHP学习总结(12)——PHP入门篇之变量
    查看>>
    PHP学习总结(13)——PHP入门篇之常量
    查看>>
    PHP学习总结(14)——PHP入门篇之常用运算符
    查看>>