Skip to content
ken farmer edited this page Oct 7, 2015 · 5 revisions

Dependencies

  • The runner and web server are intended to run on a Hadoop edge node. However, they should work on nearly any modern Linux distribution, and can also run on Mac OS using Homebrew. This is because all of the Hadoop dependencies are currently in the tests only.
  • The runner and tests require Python 2.7
  • The existing checks have all been written and testing against Impala 2.1.2. They can be easily modified to run against Hive.

Installing the Check Runner:

  • $ pip install hadoopinspector

Installing the Web Server:

Installing the Checks:

Build a check directory:

  • ex: $ mkdir /hapinsp/checks
  • Use the checks from hadoopinspector_plugins, and or write your own. But they must exist in this directory.

Build a log directory:

  • ex: $ mkdir /hapinsp/logs

Create registry config files for each instance & database to be checked:

  • See the wiki page on the registry for more info

Run the checker

hadoopinspector_runner.py --instance [your inst name]
--database [your db name]
--registry-filename /hapinsp/registry.json
--results-filename /hapinsp/results.sqlite
--check-dir /hapinsp/checks
--log-dir /hapinsp/logs
--report >> /hapinsp/logs/run.log

Run web server

Clone this wiki locally