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
sudo amazon-linux-extras install docker | |
sudo systemctl restart docker | |
sudo usermod -a -G docker ec2-user | |
exit |
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 | |
if [ $# != 1 ] ; then | |
echo 'what is the cluster name' | |
echo $0 " {cluster_name}" | |
exit 1 | |
fi | |
echo "private ENI IPs for EKS $1" | |
IP=`aws ec2 describe-network-interfaces --filter "Name=description,Values=*${1}*" --query "NetworkInterfaces[0].PrivateIpAddress" | tr -d '"'` | |
aws eks update-kubeconfig --name ${1} --kubeconfig /tmp/${1}.kubeconfig | |
sed -i "s,https://.*$,https://${IP}," /tmp/${1}.kubeconfig |
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
[ 0.000000] Linux version 4.15.0-20-generic (buildd@lgw01-amd64-039) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 (Ubuntu 4.15.0-20.21-generic 4.15.17) | |
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-20-generic root=UUID=da01446c-003f-4b5b-9f91-2431f8d8b1cc ro console=tty0 console=ttyS1,115200n8 biosdevname=0 rd.auto rd.auto=1 net.ifnames=1 hugepagesz=2MB hugepages=32768 transparent_hugepages=never nmi_watchdog=0 audit=0 nosoftlockup processor.max_cstate=1 intel_idle.max_cstate=1 hpet=disable tsc=reliable mce=off numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt isolcpus=2,4,30,32 nohz_full=2-27,30-55 rcu_nocbs=2-27,30-55 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' | |
[ 0.0000 |
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
execve("/usr/bin/vpp", ["/usr/bin/vpp", "unix { nodaemon exec /root/rdma."...], 0x7ffe5453a698 /* 14 vars */) = 0 | |
brk(NULL) = 0x558f6dd18000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=47570, ...}) = 0 | |
mmap(NULL, 47570, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb7c57b9000 | |
close(3) = 0 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libvlibmemory.so.19.04.1", O_RDONLY|O_CLOEXEC) = 3 |
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
#cloud-config | |
# rawl link to coreos-install.sh http://bit.ly/RmKdL8 | |
# raw link in cloud-config.yml example http://bit.ly/1XLOd4I | |
# include one or more SSH public keys | |
ssh_authorized_keys: | |
- ssh-rsa "AAAAB3NzaC1yc2EAAAADAQABAAABAQC0uZ1Im5/QX2vS3rCajZeOcVV3wVvEuL5Kq6uWNpKCp1g+Ql2BurjOC23p2ROkk111w0nMuPAVY4FMueLkjeu83VAlDqYEjV7u1YAmPnVepHAKd2qnRquVKvw0APLUf0YzgdpX2vgosRHB1CxaSjibzLj0PtjWTWAo99DSoS0KHX9w8d3Ta8M/pj+bWVzvKPW5uYjnGiVKj549MMU1HLuvZU7kEIL3jUdAvqVcvaFkA7hJfsOlj7UaNzsvo9eXMryxbcrKBpNhSBu9DzVD2o5gz8h8KOotqgt/49lf3pl3a2dYQY7nz848G2V6zI+ENSwlgLeZcicCw80OEHc1shqr cil" | |
users: | |
- name: "core" | |
passwd: "$1$dJRHuopb$7rRN3NPymHF3sMS5NHcjW." | |
ssh_authorized_keys: |
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
Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS | |
Introduction | |
The first question is why are we installing an old JDK. The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4). | |
This is an update to an older version of this post. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4 . | |
Install Java | |
I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS. |
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
allinone: | |
hostname: "allinone.forty.lab" | |
power_address: "192.168.20.251" | |
interfaces: | |
eth0: | |
dns-name: "allinone.forty.lab" | |
ip-address: "192.168.40.20" | |
mac-address: "D4:8C:B5:BD:4A:5C" | |
static: "0" |
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
d-i mirror/country string manual | |
d-i mirror/http/hostname string 192.168.26.170 | |
d-i mirror/http/directory string /ubuntu | |
d-i partman/early_command string vgs --separator=: --noheadings | cut -f1 -d: |while read vg ; do vgchange -an $vg ; done ; pvs --separator=: --noheadings | cut -f1 -d: | while read pv ; do pvremove -ff -y $pv ; done | |
d-i partman-auto/disk string /dev/sda | |
d-i partman/alignment string cylinder | |
d-i partman-md/device_remove_md boolean true | |
d-i partman-md/confirm boolean true | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-lvm/confirm boolean true |
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
#if $power_address and $power_address.count(':') > 0 | |
#set (power_address, org) = $power_address.split(':', 1) | |
#set $org_arg = "-s %s" % $org | |
#else | |
#set $org_arg = "" | |
#end if | |
#set $z_arg = "-z" | |
fence_cisco_ucs $org_arg $z_arg -a "$power_address" -l "$power_user" -p "$power_pass" -n "$power_id" -o "$power_mode" |
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
Mysql openstack cleanup | |
volumes: | |
use nova; | |
select id,status,display_name from volumes; | |
delete from iscsi_targets where volume_id=$id; | |
delete from volumes where id=$id; | |
hosts: |
NewerOlder