博客
关于我
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/

    你可能感兴趣的文章
    pandas :将时间戳转换为 datetime.date
    查看>>
    pandas DataFrame 中的自定义浮点格式
    查看>>
    Pandas 对数据框的布尔比较
    查看>>
    Pandas 读取具有浮点值的 csv 文件会导致奇怪的舍入和小数位数
    查看>>
    pandas 适用,但仅适用于满足条件的行
    查看>>
    Pandas-通过对列和索引的值求和来合并两个数据框
    查看>>
    pandas.read_csv()的详解-ChatGPT4o作答
    查看>>
    Pandas数据可视化怎么做?用实战案例告诉你!
    查看>>
    Pandas数据结构之DataFrame常见操作
    查看>>
    pandas整合多份csv文件
    查看>>
    pandas某一列转数组list
    查看>>
    Pandas模块,我觉得掌握这些就够用了!
    查看>>
    Pandas玩转文本处理!
    查看>>
    pandas的to_sql方法中使用if_exists=‘replace‘
    查看>>
    pandas读取parquet报错
    查看>>
    Pandas进阶大神!从0到100你只差这篇文章!
    查看>>
    spring5-介绍Spring框架
    查看>>
    PandoraFMS 监控软件 SQL注入漏洞复现
    查看>>
    PandoraFMS 监控软件 任意文件上传漏洞复现
    查看>>
    Parallel.ForEach的基础使用
    查看>>