Code Monkey home page Code Monkey logo

hdp-weblogdemo's Introduction

hdp-weblogdemo

A demo for ingesting web logs within HDP

Prerequisites

This requires a Hortonworks sandbox image, which can be downloaded from [the Hortonworks website] (http://hortonworks.com/hdp/downloads).

Configuration

Edit the file 'conf.sh' to configure the deployed environment. The defaults should work in a standard sandbox.

Deployment

Copy the contents of this repository to the running sandbox VM and run 'install.sh'.

Use

After installation, use 'run.sh' to start the demo.

The script will create a set of Flume services and an instance of Apache with a sample website. (By default this runs on port 81). If you are running the sandbox in VirtualBox you will need to forward a local port higher than port 1024 to port 81 in the sandbox in order to access this website. You can edit port forwarding in VirtualBox by going to Machine > Settings > Networking > Port Forwarding.

Click around on the website, and web logs will be generated. Clicking one of the (intentionally) broken links at the bottom of the page will generate errors that will go into the error log. The log data is ingested by Flume and will appear in HDFS in the user directory configured in conf.sh.

The following external tables are created in Hive and pointed to the logs ingested by Flume:

  • access_log - Web access logs
  • error_log - Web error logs

Cleaning up

Once you are finished, run 'cleanup.sh' to remove any generated log and hive data and prep the environment for the next time. (Not cleaning up won't cause any issues, but will cause you to have older data already in the hive tables when starting next time.)

hdp-weblogdemo's People

Contributors

drnice avatar mccollam avatar tombenton avatar

Stargazers

 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.