1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        phdfsHDFS 的 PHP 擴(kuò)展

        聯(lián)合創(chuàng)作 · 2023-10-01 06:42

        Phdfs 是hadoop hdfs 的php擴(kuò)展。用于便捷的操作HDFS。

         <?php
            try {
                $obj = new phdfs(“127.0.0.1“,”9000“); 
                $obj->connect();
                //create file
                $log =  $obj->write("/a/b/c/test1.txt","test",O_WRONLY|O_CREAT); 
                //appden file
                $log =  $obj->write("/a/b/c/test2.txt","test",O_WRONLY|O_APPEND); 
                var_dump($log);
                echo $obj->rename("/a/b/c/test2.txt","/a/b/c/test3.txt");
            }catch (Exception $ex) {
                echo $ex->getMessage();
            }   
        ?> 
        瀏覽 15
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            国产精品久久视频 | 中文字幕无码A片一区在线观看 | www.色婷婷 | 人体美媚馆无码专区 | 麻豆操逼网站 | 很很五月婷婷 | 人摸人操 | 91成人国产 | 黄肉文小说 | 老熟女亂伦一区二区三区视频观看 |