Giter Club home page Giter Club logo

dr-tools's Introduction

dr-tools

Tools for Hadoop disaster recovery

Rangercli

This is a set of scripts that interacts with the Ranger REST API to transfer and compare policies of two clusters. Have a look at the README.md in the rangercli subdirectory for more details.

Falcon

This directory contains a few XML files serving as examples...

  • for creating a cluster entity in Falcon (cluster_example.xml)

  • for creating a mirror process between two clusters (mirror_example.dms)

Hive Schema Copy Script

This is simple sample script that does the following:

  • connects to MySQL server
  • dumps content of "hive" database on disk (per default in /tmp/ directory)
  • changes cluster name
  • imports dump to backup MySQL server
  • clean up

Prerequisites

  • Environment variables must be set
    CLUSTERNAME, HIVE_USER, HIVE_PASSWORD, MYSQL_HOST,
    CLUSTERNAME2, HIVE_USER2, HIVE_PASSWORD2, MYSQL_HOST2
    
  • Network connectivity to both hosts on port 3306 must be given.
  • User need to be allowed to connect to hive database on both servers from server the script is executed from.

Usage

Make sure script has execute permissions.

./hive-schema-copy.sh

dr-tools's People

Contributors

condla avatar

Watchers

 avatar  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.