Skip to content

Instantly share code, notes, and snippets.

View mjacobs's full-sized avatar

Matthew Jacobs mjacobs

  • San Francisco
  • 05:25 (UTC -07:00)
View GitHub Profile
@mjacobs
mjacobs / registry.yaml
Created December 23, 2017 01:26
Set up a local docker registry in Kubernetes
kind: PersistentVolume
apiVersion: v1
metadata:
name: kube-system-kube-registry-pv
labels:
kubernetes.io/cluster-service: "true"
type: local
spec:
capacity:
storage: 10Gi
@mjacobs
mjacobs / _insert_missing_col_bug.sql
Last active October 29, 2016 21:56
Kudu functional test notes
create table kudu_tbl_two_keys (id int , name string, x int , primary key (id, name))
DISTRIBUTE BY hash(id) into 3 buckets STORED AS KUDU;
-- !!! This is a (minor) bug, it passes analysis and fails at runtime. This returns:
-- WARNINGS: Error applying Kudu Op.: Illegal state: Key not specified: INSERT int32 id=0
insert into kudu_tbl_two_keys(id) select int_col from functional.alltypestiny;
@mjacobs
mjacobs / hs2client.patch
Created April 22, 2016 22:45
hs2client patch (WIP) for templated Column class
commit b517de00a70f74605dd3dedec660ff1dc82cf0c7
Author: Matthew Jacobs <mj@cloudera.com>
Date: Thu Apr 21 18:57:35 2016 -0700
WIP - Templated Column implementation
Change-Id: Idaa998ad546eb02777b8dacf10ef6a7e51f935da
diff --git a/src/hs2client/columnar-row-set.cc b/src/hs2client/columnar-row-set.cc
index 3bf46a2..fd9f03c 100644
@mjacobs
mjacobs / README.txt
Last active March 27, 2016 20:35
Admission Control Demo CM Dashboard
Sample CM dashboard for per-pool Impala admission control metrics.
Requires CM 5.7 and Impala 2.5
Import into CM via the chart dashboard Import functionality. See
the CM documentation for more information:
http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cm_dg_dashboards.html?scroll=concept_q4c_2f4_3l_unique_1
@mjacobs
mjacobs / .vimrc
Last active August 24, 2017 16:14
mj's vimrc
" Matthew Jacobs
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Plugin 'gmarik/vundle'
Plugin 'bufexplorer.zip'