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

    你可能感兴趣的文章
    phpize及其用法
    查看>>
    phpMailer发送邮件
    查看>>
    PHPMailer发送邮件
    查看>>
    phpmailer发送邮件,可以带附件
    查看>>
    phpmailer的用法
    查看>>
    phpMQTT
    查看>>
    phpmyadmin 安装
    查看>>
    phpmyadmin导出数据库出现Fatal error: Cannot 'break' 2 levels in D:\phpstudy\WWW\phpMyAdmin
    查看>>
    phpmyadmin数据库建表及插入
    查看>>
    phpnow配置
    查看>>
    phprpc简单使用
    查看>>
    phpspider中当爬虫获取数据时如何去掉广告
    查看>>
    phpstorm 2016.3.3 激活
    查看>>
    phpstorm中Xdebug的使用
    查看>>
    phpstorm中使用svn版本控制器
    查看>>
    PHPStorm使用git
    查看>>
    PHPstorm最常用的快捷键,提高开发效率
    查看>>
    Redis五种数据结构
    查看>>
    phpstorm配置php脚本执行
    查看>>
    PhpStorm配置远程xdebug
    查看>>