Git Product home page Git Product logo

ansible-modules-hdfs's Introduction

ansible-module-hdfs

Ansible modules for interacting with HDFS. Provides functionality similar to the core Ansible file module for the HDFS filesystem.

Requirements

  • Tested with Ansible 2.2+
  • Target hosts must have the hdfs3 python module and libhdfs3.so shared library installed. See here for installation instructions.

Usage example

- hosts: hdfs-namenode
  tasks:
  
    #
    # Install requirements
    #
    
    - name: Install python-pip
      become: yes
      apt:
        name: python-pip
        state: latest

    - name: Install hdfs3 python HDFS client
      become: yes
      pip:
        name: hdfs3
        state: latest

    - name: Add libhdfs3 PPA
      become: yes
      apt_repository:
        repo: deb https://dl.bintray.com/wangzw/deb trusty contrib
        update-cache: yes

    - name: Install libhdfs3 dependencies
      become: yes
      apt:
        name: "{{ item }}"
        state: latest
      with_items:
        - libgsasl7
        - libntlm0
        - libprotobuf8
    
    - name: Install libhdfs3 and libhdfs3-dev
      become: yes
      apt:
        name: "{{ item }}"
        allow_unauthenticated: yes
        state: latest
      with_items:
        - libhdfs3
        - libhdfs3-dev

    #
    # Usage example
    #
    - name: hdfs file test
      hdfsfile:
        namenode_host: namenode.my.org
        namenode_port: 8020     # optional. default: 8020
        effective_user: user    # optional, omit to use "{{ become_user }}"
        path: /test/data
        owner: data-write
        group: data-read
        mode: 0750
        state: directory

ansible-modules-hdfs's People

Contributors

grantneale avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.