承接 mrferos/zf2-webhdfs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mrferos/zf2-webhdfs

Composer 安装命令:

composer require mrferos/zf2-webhdfs

包简介

README 文档

README

Installation

composer require mrferos/zf2-webhdfs:dev-master

Description

A simple ZF2 module providing an Abstract Factory to create instances of php-WebHDFS

Usage

Copy the provided example config file into config/autoload

cp vendor/zf2-webhdfs/config/mrfwebhdfs.global.config.php.dist config/autoload/mrfwebhdfs.global.config.php

And edit the file with your settings:

<?php
return array(
    'WebHDFSExample' => array(
        'username' => 'mrferos',
        'host' => 'localhost',
        'port' => 50070
    )
);

Calling "WebHDFSExample" from the service manager will return an instance of the WebHDFS class with your provided configurations.

$webhdfs = $serviceManager->get('WebHDFSExample');

If you have multiple WebHDFS enpoints, you can define each like so:

<?php
return array(
    'WebHDFSExample1' => array(
        'username' => 'mrferos',
        'host' => 'localhost',
        'port' => 50070
    ),
    'WebHDFSExample2' => array(
            'username' => 'mrferos',
            'host' => 'localhost',
            'port' => 50070
        )
    'WebHDFSExample3' => array(
            'username' => 'mrferos',
            'host' => 'localhost',
            'port' => 50070
        )
);

And call them in the same way,

$webhdfs1 = $serviceManager->get('WebHDFSExample1');
$webhdfs2 = $serviceManager->get('WebHDFSExample2');
$webhdfs3 = $serviceManager->get('WebHDFSExample3');

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-31