parent
8dee9f0453
commit
2316c468d0
@ -1,3 +1,5 @@
|
||||
*.zwc
|
||||
*.zwc.old
|
||||
modules/*/cache.zsh
|
||||
appuri.env
|
||||
redshift.env
|
@ -0,0 +1,11 @@
|
||||
# conflict with go's gb
|
||||
unalias gb &>/dev/null
|
||||
|
||||
export GOROOT=/usr/local/go
|
||||
export GOPATH=$MYSRC/gopath
|
||||
|
||||
# Set the list of directories that Zsh searches for programs.
|
||||
path=(
|
||||
$path
|
||||
$GOPATH/bin
|
||||
)
|
@ -0,0 +1 @@
|
||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
|
@ -0,0 +1,10 @@
|
||||
source <(kubectl completion zsh)
|
||||
|
||||
function kube-pod-restart {
|
||||
SVC_TOKILL=$1
|
||||
NAMESPACE="${2-default}"
|
||||
|
||||
if [ "$SVC_TOKILL" = "" ]; then exit 1; fi
|
||||
|
||||
kubectl delete po --namespace $NAMESPACE $(kubectl get po --namespace $NAMESPACE | grep $SVC_TOKILL | awk '{print $1}' | tr '\n' ' ')
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
export KAFKA09=$MYSW/kafka
|
||||
|
||||
function kafka-stop {
|
||||
$KAFKA09/bin/zookeeper-server-stop.sh $KAFKA09/config/zookeeper.properties
|
||||
sleep 3
|
||||
$KAFKA09/bin/kafka-server-stop.sh $KAFKA09/config/server.properties
|
||||
}
|
||||
|
||||
function kafka-start {
|
||||
rm -rf /tmp/zookeeper /tmp/kafka-logs
|
||||
$KAFKA09/bin/zookeeper-server-start.sh $KAFKA09/config/zookeeper.properties &
|
||||
sleep 2
|
||||
$KAFKA09/bin/kafka-server-start.sh $KAFKA09/config/server.properties &
|
||||
sleep 1
|
||||
}
|
||||
|
||||
function kafka-topic-produce-zombie-raw {
|
||||
kafka-topic-produce _test_events-1ebef931-8f30-49c9-9681-c5b22f5382d3
|
||||
}
|
||||
function kafka-topic-produce-zombie-sch {
|
||||
kafka-topic-produce _test_sch_events-1ebef931-8f30-49c9-9681-c5b22f5382d3
|
||||
}
|
||||
|
||||
function kafka-topic-produce {
|
||||
TOPIC="${1-}"
|
||||
HOST="${2-localhost}"
|
||||
PORT="${3-9092}"
|
||||
|
||||
if [ "$TOPIC" = "" ]; then exit 1; fi
|
||||
|
||||
$KAFKA09/bin/kafka-console-producer.sh --topic $TOPIC --broker-list $HOST:$PORT
|
||||
}
|
||||
|
||||
function kafka-topic-consume-zombie-raw {
|
||||
kafka-topic-consume _test_events-1ebef931-8f30-49c9-9681-c5b22f5382d3
|
||||
}
|
||||
function kafka-topic-consume-zombie-sch {
|
||||
kafka-topic-consume _test_sch_events-1ebef931-8f30-49c9-9681-c5b22f5382d3
|
||||
}
|
||||
function kafka-topic-consume {
|
||||
TOPIC="${1-}"
|
||||
HOST="${2-localhost}"
|
||||
PORT="${3-9092}"
|
||||
|
||||
if [ "$TOPIC" = "" ]; then exit 1; fi
|
||||
|
||||
$KAFKA09/bin/kafka-topics.sh --zookeeper $HOST:$PORT --describe --topic $TOPIC
|
||||
}
|
||||
|
||||
function kafka-topic-create-zombie-raw {
|
||||
kafka-topic-create _test_events-1ebef931-8f30-49c9-9681-c5b22f5382d3
|
||||
}
|
||||
function kafka-topic-create-zombie-sch {
|
||||
kafka-topic-create _test_sch_events-1ebef931-8f30-49c9-9681-c5b22f5382d3
|
||||
}
|
||||
function kafka-topic-create {
|
||||
TOPIC="${1-}"
|
||||
HOST="${2-localhost}"
|
||||
PORT="${3-2181}"
|
||||
|
||||
if [ "$TOPIC" = "" ]; then exit 1; fi
|
||||
|
||||
$KAFKA09/bin/kafka-topics.sh --create --zookeeper $HOST:$PORT --replication-factor 1 --partitions 1 --topic $TOPIC
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
|
||||
alias ejs='code -n ~/.eslintrc ~/.esformatter $MYTOOL/setup-js-lint-formatter.sh'
|
@ -0,0 +1,11 @@
|
||||
export HADOOP_HOME=/usr/local/opt/hadoop/libexec
|
||||
export HIVE_HOME=/usr/local/opt/hive/libexec
|
||||
export HCAT_HOME=/usr/local/opt/hive/libexec/hcatalog
|
||||
|
||||
function parquet-tools {
|
||||
ARGS="$@"
|
||||
|
||||
if [ "$ARGS" = "" ]; then ARGS="--help"; fi
|
||||
|
||||
java -jar $MYSRC/parquet-mr/parquet-tools/target/parquet-tools-1.6.0rc4.jar $ARGS
|
||||
}
|
Loading…
Reference in new issue