Skip to content

Instantly share code, notes, and snippets.

View tim-patterson's full-sized avatar

Tim Patterson tim-patterson

  • Wellington, New Zealand
View GitHub Profile
@tim-patterson
tim-patterson / HivePartitioning.md
Created March 22, 2015 09:05
Hive Partitioning

Hive partitioning scheme for dealing with late arriving data etc.

Over the last few years I've been quite involved with using hive for big data analysis.

I've read many web tutorials and blogs about using hadoop/hive/pig for data analysis but all them seem to be over simplified and targeted as a "my first hive query" kind of audience instead of showing how to structure hive tables and queries for real word use cases eg years of data, reoccurring batch jobs to build aggregate/reporting tables and having to deal with late arriving data etc.

Most of these tutorials look something like this

Twitter Data -> hdfs/external hive table external hive table -> hive query -> results.

@tim-patterson
tim-patterson / repl.py
Last active July 3, 2018 23:31
Code to create an interactive console(s) for python apps that can be remotely connected to
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
@tim-patterson
tim-patterson / .nanorc
Created December 26, 2012 08:11
~/.nanorc file
include /usr/share/nano/c.nanorc
include /usr/share/nano/html.nanorc
include /usr/share/nano/makefile.nanorc
include /usr/share/nano/python.nanorc
include /usr/share/nano/xml.nanorc
include /usr/share/nano/java.nanorc
include /usr/share/nano/sh.nanorc
set autoindent
set nowrap
set tabsize 4
@tim-patterson
tim-patterson / wxdnd.py
Last active October 12, 2015 10:48
Wxpython Dnd listctrl test
import wx
import sys
from wx._core import EVT_LEFT_UP
class MainWindow(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title='Python Listbox test')
self.setup_menu()
self.setup_list()