Project

hivonic

0.0
No commit activity in last 3 years
No release in over 3 years
Hivonic provides utilities for dealing with temporary hive tables
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7.0
~> 1.1.0
~> 0.10.0
~> 10.4.0

Runtime

~> 2.13.0
 Project Readme

hivonic

Tonic oriented utilities for hive (Hive + Tonic => hivonic)

This tool requires tmp hive tables to include timestamp as part of the table name by convention.

Status

Build Status

Shell Environment Variables

  • $HIVONIC_HIVE_OPTS
    • Options passed to the hive client
    • Defaults to '-S' # Silent
  • $HIVONIC_REGEXP
    • This is the regexp used to match tables and capture time from name
    • Defaults to '\A(tmp|view)[a-z||0-9]+(\d{14})\Z'
  • $HIVONIC_TIME_FORMAT
    • This is the time format used to parse the timestamp from the table name
    • Defaults to '%Y%m%d%H%M%S'
  • $HIVONIC_TIME_GROUP_INDEX
    • Ability to specify match group index for regexp time capture
    • Defaults to '2'
  • $HIVONIC_TTL
    • This is the Time-To-Live for Hive temporary tables
    • Defaults to '86400' (24 hours)

Hivonic Commands

  • list db
    • Lists all tmp hive tables that match regexp and are expired
  • rm db table
    • Removes specified table from specified db
  • cleanup db
    • Cleans up (removes) all tmp hive tables that match regexp and are expired

Example Usages

hivonic list default
hivonic cleanup default
hivonic rm default sometimestamp_sometable

Credit Ethan Rowe for the original command handler technique in hadupils.