for topic in $(find /opt/cloudera/data/*/kafka/ -maxdepth 1 -mindepth 1 -type d -exec basename {} \;| awk -F '-' '{print $1}'| sort |uniq | grep -v consumer_offsets);do
du -csh /opt/cloudera/data/*/kafka/${topic}*| grep total| awk '{print "topic '$topic' "$1}'
done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
bastion: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: | |
- "run" | |
- "--listen-ctl=0.0.0.0:9632" | |
- "--permanent-peer" | |
hostname: bastion | |
domainname: habitat.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aptly mirror list -raw | grep -E '*' | xargs -n 1 aptly mirror update | |
aptly_mirror_update.sh -s -v | |
aptly-publisher --architectures=amd64 --timeout=1200 publish -v -c /etc/aptly-publisher.yaml --url http://192.168.104.50:8084 --recreate | |
aptly-publisher --url http://192.168.104.50:8084 promote --source ubuntu-trusty/nightly --target ubuntu-trusty/testing --force-overwrite -d --timeout 600 --recreate | |
aptly-publisher --url http://192.168.104.50:8084 promote --source ubuntu-xenial/nightly --target ubuntu-xenial/testing --force-overwrite -d --timeout 600 --recreate | |
nohup aptly api serve --no-lock & | |
Add repo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbd list -k /etc/ceph/ceph.client.volumes.keyring --user volumes --pool volumes | |
ceph osd pool ls | |
ceph auth list | |
ceph health | |
ceph -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# NOTICE: GCE and OpenStack providers only. | |
require 'json' | |
require 'erb' | |
def get_template() | |
%{ | |
<% hosts.each do |key, entry| %> | |
Host <%= key %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
systemd: | |
units: | |
- name: etcd2.service | |
enable: true | |
dropins: | |
- name: 40-etcd-cluster.conf | |
contents: | | |
[Service] | |
Environment="ETCD_NAME={{.etcd_name}}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable sparse-checkout: | |
git config core.sparsecheckout true | |
Configure sparse-checkout by listing your desired sub-trees in .git/info/sparse-checkout: | |
echo some/dir/ >> .git/info/sparse-checkout | |
echo another/sub/tree >> .git/info/sparse-checkout | |
Update your working tree: | |
git read-tree -mu HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git config --global user.email '[email protected]' | |
git config --global user.name 'Travis' | |
git remote set-branches --add origin master | |
git fetch | |
git reset --hard | |
git checkout master | |
git merge --ff-only "$TRAVIS_COMMIT" | |
git push git+ssh://[email protected]/${TRAVIS_REPO_SLUG}.git master |