Skip to content

Instantly share code, notes, and snippets.

╔═══════════════════════════════════════════════╦════════════════════════╗
║ Method ║ Parameter ║
╠═══════════════════════════════════════════════╬════════════════════════╗
║ MetaStoreEventListener.onConfigChange ║ ConfigChangeEvent ║
║ MetaStoreEventListener.onCreateTable ║ CreateTableEvent ║
║ MetaStoreEventListener.onDropTable ║ DropTableEvent ║
║ MetaStoreEventListener.onAlterTable ║ AlterTableEvent ║
║ MetaStoreEventListener.onAddPartition ║ AddPartitionEvent ║
║ MetaStoreEventListener.onDropPartition ║ DropPartitionEvent ║
║ MetaStoreEventListener.onAlterPartition ║ AlterPartitionEvent ║
╔═══════════════════════════════════════╦═══════════════════════════════════════════════════════════════╗
║ Property ║ Abstract class ║
╠═══════════════════════════════════════╬═══════════════════════════════════════════════════════════════╗
║ hive.metastore.pre.event.listeners ║ org.apache.hadoop.hive.metastore.MetaStorePreEventListener ║
║ hive.metastore.end.function.listeners ║ org.apache.hadoop.hive.metastore.MetaStoreEndFunctionListener ║
║ hive.metastore.event.listeners ║ org.apache.hadoop.hive.metastore.MetaStoreEventListener ║
╚═══════════════════════════════════════╩═══════════════════════════════════════════════════════════════╝
@Tejadogiparthi
Tejadogiparthi / max_recursion_limit.py
Created April 11, 2018 21:18
To find the maximum recursion limit that prevents interpreter termination.
#! /usr/bin/env python
"""Find the maximum recursion limit that prevents interpreter termination.
This script finds the maximum safe recursion limit on a particular
platform. If you need to change the recursion limit on your system,
this script will tell you a safe upper bound. To use the new limit,
call sys.setrecursionlimit().
This module implements several ways to create infinite recursion in
Python. Different implementations end up pushing different numbers of
@Tejadogiparthi
Tejadogiparthi / git-workflow.md
Created March 14, 2018 18:28 — forked from forest/git-workflow.md
Git Feature Branch Workflow

We subscribe to the Git Featrue Branch workflow, briefly described in that link.

In practice, it works as follows:

FEATURE DEVELOPMENT

Steps to Follow:

  1. Start with an updated local development branch -- by checking out the dev branch and pulling changes:
    git checkout development
    git pull origin development
@Tejadogiparthi
Tejadogiparthi / boto_dynamodb_methods.py
Created February 26, 2018 19:14 — forked from martinapugliese/boto_dynamodb_methods.py
Some wrapper methods to deal with DynamoDB databases in Python, using boto3.
# Copyright (C) 2016 Martina Pugliese
from boto3 import resource
from boto3.dynamodb.conditions import Key
# The boto3 dynamoDB resource
dynamodb_resource = resource('dynamodb')
def get_table_metadata(table_name):
@Tejadogiparthi
Tejadogiparthi / The Technical Interview Cheat Sheet.md
Created February 18, 2018 22:39 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@Tejadogiparthi
Tejadogiparthi / Lambda_Logging.py
Created January 15, 2018 22:08
Setup log in aws lambda function.
def setup_logging():
logger = logging.getLogger()
for h in logger.handlers:
logger.removeHandler(h)
h = logging.StreamHandler(sys.stdout)
logformat = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
h.setFormatter(logging.Formatter(logformat))
logger.addHandler(h)
logger.setLevel(logging.INFO)
@Tejadogiparthi
Tejadogiparthi / change_lambda_logger_format.py
Created November 29, 2017 22:44 — forked from niranjv/change_lambda_logger_format.py
Change Python logger format in AWS Lambda
# Python logger in AWS Lambda has a preset format. To change the format of the logging statement,
# remove the logging handler & add a new handler with the required format
import logging
import sys
def setup_logging():
logger = logging.getLogger()
for h in logger.handlers:
logger.removeHandler(h)
@Tejadogiparthi
Tejadogiparthi / lambda_logger_format.py
Last active November 30, 2017 00:01 — forked from niranjv/change_lambda_logger_format.py
Change Python logger format in AWS Lambda
# Python logger in AWS Lambda has a preset format. To change the format of the logging statement,
# remove the logging handler & add a new handler with the required format
import logging
import sys
def setup_logging():
logger = logging.getLogger()
for h in logger.handlers:
logger.removeHandler(h)