brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
package com.confluent.benstopford; | |
import kafka.consumer.*; | |
import kafka.javaapi.consumer.ConsumerConnector; | |
import kafka.message.MessageAndMetadata; | |
import kafka.serializer.StringDecoder; | |
import kafka.server.KafkaConfig; | |
import kafka.server.KafkaServerStartable; | |
import org.apache.curator.test.TestingServer; | |
import org.apache.kafka.clients.producer.KafkaProducer; |
[root@kafka-a-01 /]# /opt/kafka_current/bin/kafka-console-consumer.sh | |
The console consumer is a tool that reads data from Kafka and outputs it to standard output. | |
Option Description | |
------ ----------- | |
--blacklist <blacklist> Blacklist of topics to exclude from | |
consumption. | |
--bootstrap-server <server to connect REQUIRED (unless old consumer is | |
to> used): The server to connect to. | |
--consumer-property <consumer_prop> A mechanism to pass user-defined | |
properties in the form key=value to |
#!/bin/bash | |
export AnException=100 | |
export AnotherException=101 | |
# start with a try | |
try | |
( # open a subshell !!! | |
echo "do something" | |
[ someErrorCondition ] && throw $AnException |
#!/usr/bin/env python | |
import boto | |
import sys, os | |
from boto.s3.key import Key | |
from boto.exception import S3ResponseError | |
DOWNLOAD_LOCATION_PATH = os.path.expanduser("~") + "/s3-backup/" | |
if not os.path.exists(DOWNLOAD_LOCATION_PATH): |
#!/bin/bash | |
## | |
## Simple logging mechanism for Bash | |
## | |
## Author: Michael Wayne Goodman <goodman.m.w@gmail.com> | |
## Thanks: Jul for the idea to add a datestring. See: | |
## http://www.goodmami.org/2011/07/simple-logging-in-bash-scripts/#comment-5854 | |
## Thanks: @gffhcks for noting that inf() and debug() should be swapped, | |
## and that critical() used $2 instead of $1 |
This gist covers the Oozie SSH action. | |
It includes components of a sample Oozie workflow application- scripts/code, | |
sample data and commands; Oozie actions covered: secure shell action, email | |
action. | |
My blog has documentation, and highlights of a very basic sample program. | |
http://hadooped.blogspot.com/2013/10/apache-oozie-part-13-oozie-ssh-action_30.html | |
This gist includes: |
Instructions for getting an ELK stack set up quick on Mac. Paths are opinionated. You'll have to infer and change. Sorry mate. 🍰
Install Homebrew if not already. You probably have. If not, you should.
brew install elasticsearch nginx
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
###Hive Default Delimiters to CSV #####Reasoning Hive's default delimiters are
Row Delimiter => Control-A ('\001')
Collection Item Delimiter => Control-B ('\002')
Map Key Delimiter => Control-C ('\003')