Giter Site home page Giter Site logo

452926826 / hive-druid-ssb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cartershanklin/hive-druid-ssb

0.0 0.0 0.0 113 KB

Star Schema Benchmark using the Hive / Druid Integration

Shell 1.19% C 80.96% Objective-C 0.22% Java 4.23% Makefile 2.02% HTML 11.37%

hive-druid-ssb's Introduction

Star Schema Benchmark using the Hive / Druid Integration

Pre-requisites to running this:

  • Functional Druid cluster.
  • A version of Hive that supports the Druid Storage Handler. This includes Apache Hive version 2.2 or later, or Hortonworks Data Platform (HDP) 2.6 or later.
  • Apache Maven and gcc, for the data generator.

Before continuing, identify these things:

  • Your desired data scale, in gigabytes. For example, a scale of 1000 equals about a TB of data
  • Your HiveServer2 host:port
  • The Druid overlord host
  • The username and password for your Druid metadata database

Process:

  • Build the data generator (native code)
  • Package the data generator in a JAR file capable of being run as a MapReduce job to generate data within a Hadoop cluster
  • Run a MapReduce job to generate "CSV" data within HDFS
  • Run a Hive job to convert this "CSV" data into Hive tables
  • Run a Hive job to push pre-aggregated data into Druid. This step may require you to create additional HDFS directories and set permissions if you're not using HDP.

If all goes well, you only run 3 commands:

  1. sh 00datagen.sh [scale] [hiveserver2:port]
  2. sh 00load.sh [scale] [hiveserver2:port] [overlord] [username] [password]
  3. sh 00run.sh [hiveserver2:port]

Example to run at scale 100:

sh 00datagen.sh 100 hive.example.com:10500
sh 00load.sh 100 hive.example.com:10500 druid.example.com druid password
sh 00run.sh hive.example.com:10500

hive-druid-ssb's People

Contributors

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