Giter VIP home page Giter VIP logo

bodega's Introduction

Eucalyptus Data Warehouse

What is it?

The Eucalyptus Data Warehouse (or eucadw) is a reference implementation toolset for creating a data warehouse for your Eucalyptus reporting information. Reporting data that has been exported from a Cloud Controller can be imported into a database where reports can be generated.

Operating system requirements

These instructions assume that your data warehouse will be running CentOS or RHEL 6. Also, please note that you should not install the DW tools on a running Eucalyptus system. The installation instructions do require that Eucalyptus is built and installed only for jar files required by the DW tools. The Eucalyptus install can be removed after the DW tools have been built.

Build and install from source

In order to build the Data Warehouse from source, you will need the following:

  1. An installed copy of Eucalyptus from the testing branch (the DW needs jar files located in /usr/share/eucalyptus)
  2. Java 1.6.0 or greater
  3. Apache Ant
  4. Apache Ivy
  5. Python 2.6.x

Next, check out the DW repository:

> git clone git://github.com/eucalyptus/bodega.git
> cd bodega

Build and install java components:

> ant -Ddistro.name=centos
> mkdir -p /usr/share/java/eucadw
> cp -a lib/*.jar /usr/share/java/eucadw
> cp -a dist/*.jar /usr/share/java/eucadw

Build and install python components:

> cd eucadw
> python setup.py build
> python setup.py install

Configuring the database

Add a repository file /etc/yum.repos.d/eucaruntime.repo with the following content:

[eucaruntime]
name = Eucalyptus Runtime
baseurl = http://downloads.eucalyptus.com/software/eucalyptus/runtime-deps/3.1/centos/6/x86_64/
enabled = 1
gpgcheck = 0

Install and configure the Postgresql 9.1 packages:

> yum install postgresql91-server
> service postgresql-9.1 initdb
> service postgresql-9.1 start
> su - postgres
> psql

Now, at the psql prompt run:

> create database eucalyptus_reporting;
> create user eucalyptus with password 'mypassword';
> grant all on database eucalyptus_reporting to eucalyptus;
> exit

Edit /var/lib/pgsql/9.1/data/pg_hba.conf so that is contains the following settings:

local   all             all                                     password
host    all             all             127.0.0.1/32            password
host    all             all             ::1/128                 password

At this point the Postgresql service should be reloaded:

> service postgresql-9.1 reload

Using the DW cli tools

Now your system is configured to be used as a Data Warehouse. Check the status of the database by running:

> eucadw-status -p mypassword

You can also import data exported from your Cloud Controller using:

> eucadw-import-data -e myexportdata.txt -p mypassword

bodega's People

Contributors

gholms avatar mspaulding06 avatar sjones4 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.