System Design Note - CAP Theorem  [draft]

CAP Theorem CAP Theorem stands for Consistency, Availability, and Partition Tolerant. Reference CAP Theorem

March 3, 2017 · 1 min · 14 words · Eric

Unable to SSH AWS EC2 Instance

Yesterday when I tried to ssh to remote EMR cluster, it raised this problem 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [ec2-user@ds-uat-airflow1 ~]$ ssh -i ~/YOUR_SECRET.pem hadoop@ip-YOUR_IP_ADDRESS.us-west-2.compute.internal @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed....

December 13, 2016 · 1 min · 187 words · Eric

Docker Command  [draft]

Prune images 1 docker image prune -af or 1 docker rm $(docker ps -q -a -f "status=exited")

September 17, 2016 · 1 min · 17 words · Eric

How to Do 1 On 1 Meeting  [draft]

Reference eugeneyan: 1-on-1s

September 2, 2016 · 1 min · 3 words · Eric

Parse JSON Object with Jenkins

Jenkins itself is not able to parse JSON response body. However, we can use Python with the built-in json library to parse JSON object within command-line. For example, if we request the URL like http://md5.jsontest.com/?text=example_text , this will return the values as 1 2 3 4 { md5: "fa4c6baa0812e5b5c80ed8885e55a8a6", original: "example_text" } With the help of Python json library, we can do something like 1 2 3 Url=http://md5.jsontest.com/?text=example_text Md5Info=`curl $Url -k | python -c "import sys, json; print json....

May 5, 2016 · 1 min · 100 words · Eric