博客
关于我
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 :加入有条件的数据框
    查看>>
    pandas :将多列汇总为一列,没有最后一列
    查看>>
    pandas :将时间戳转换为 datetime.date
    查看>>
    pandas :将行取消堆叠到新列中
    查看>>
    pandas DataFrame 中的自定义浮点格式
    查看>>
    Pandas DataFrame 的 describe()方法详解-ChatGPT4o作答
    查看>>
    Pandas DataFrame中删除列级的方法链接解决方案
    查看>>
    Pandas DataFrame中的列从浮点数输出到货币(负值)
    查看>>
    Pandas DataFrame中的列从浮点数输出到货币(负值)
    查看>>
    Pandas DataFrame多索引透视表-删除空头和轴行
    查看>>
    pandas DataFrame的一些操作
    查看>>
    Pandas Dataframe的日志文件
    查看>>
    Pandas df.iterrows() 并行化
    查看>>
    pandas GROUPBY+变换和多列
    查看>>
    pandas Groupby:创建两列的Groupby时,如何按正确的顺序对工作日进行排序?
    查看>>
    Pandas matplotlib 无法显示中文
    查看>>
    pandas PIVOT_TABLE保持索引
    查看>>
    Pandas Plots:周末的单独颜色,x 轴上漂亮的打印时间
    查看>>
    pandas to_latex() 转义数学模式
    查看>>
    Pandas 中文官档 ~ 基础用法4
    查看>>