Hadoop CheaSheet

IntroductionWe have decided to aggregate in a single post the most important things to know about hadoop in a concise way. Let’s us know if you have any comments! Hadoop1234567891011121314151617181

Linux cheasheet

Pass result of awk into kill or another command docker ps -a | grep houston | awk '{print $1}' | xargs docker rm Search replace =enforcing to =permissive in file1sudo sed -i 's\=enforcing\=per

Ruby cheasheet

1234567891011121314# mock power2 function.def power2(x) x * xendrequire "test/unit"require 'mocha/test_unit'class TestSimpleNumber < Test::Unit::TestCase def test_simple expects(:power2).retur

Docker cheasheet

ubuntu bin/bash docker docker run -it ubuntu /bin/bash docker run argument to docker run such as /bin/bash overrides and CMD command we wrote in Dockerfile ENTRYPOINT cannot be overriden at run time w

Puppet cheasheet

simple puppet manifest 123456node 'yourhostname' { file { '/test.txt': ensure => 'present', content => inline_template("this is a test <%= %>\n"), &#

Kubernetes cheasheet

Check Cluster Status 1kubectl cluster-info Run an RC kubectl create -f redis-master-controller.yaml Check if running 12345kubectl get rckubectl get podsdocker ps | grep rediskubectl get serviceskubect

R cheasheet

Read log file and print line chart 12df = read.table("~/tmp/heapmem.log", header = FALSE)matplot(df$V4, type="l") in column 4 we have the heapmem it will produce the linechart. Getting help and exampl