Kafka Mirror Maker - from source non-kerberized cluster to target (kerberized) cluster
source cluster:
HDP242
un-secure
hostname: rksnode1
destination cluster:
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
| #!/bin/bash | |
| # Build latest version of Emacs, version management with stow | |
| # OS: Ubuntu 14.04 LTS | |
| # version: 24.5 | |
| # Toolkit: lucid | |
| # Warning, use updated version of this script in: https://github.com/favadi/build-emacs | |
| set -e |
| # from https://gist.github.com/MattDMo/6cb1dfbe8a124e1ca5af | |
| import os | |
| import json | |
| import socket | |
| import threading | |
| activate_this = os.environ.get("SUBLIMEREPL_ACTIVATE_THIS", None) | |
| # turn off pager |
| import psycopg2 | |
| from sshtunnel import SSHTunnelForwarder | |
| # For interactive work (on ipython) it's easier to work with explicit objects | |
| # instead of contexts. | |
| # Create an SSH tunnel | |
| tunnel = SSHTunnelForwarder( | |
| ('128.199.169.188', 22), | |
| ssh_username='<username>', |
| const fs = require('fs'); | |
| const os = require('os'); | |
| const tunnelSsh = require('tunnel-ssh'); | |
| const { Pool } = require('pg'); | |
| (async () => { | |
| /** @type {import('net').Server} */ | |
| let tunnel; | |
| try { |
| #!/bin/bash | |
| # Remove old vim installs | |
| sudo apt-get remove vim vim-runtime gvim vim-tiny \ | |
| vim-common vim-gui-common vim-nox gvim | |
| # install vim-gtk deps | |
| sudo apt-get build-dep vim-gtk | |
| # install some more deps |