A few days ago I encountered an issue in a Kafka cluster. Each Kafka instances in the cluster constantly reported the below error logs: [2021-02-01 21:59:59,952] ERROR [KafkaApi-2] Number of alive brokers ‘0’ does not meet the required replication factor… Read More
setup robot framework environment
Robot Framework is widely used in our company to do webapp automation testing. This post lists the required steps to setup the environment for the robot framework. 1. Install pyenv pyenv is an excellent tool to switch python between multiple… Read More
install chrome in ubuntu and rhel linux
Chrome is an excellent web browser nowadays. It is widely used by normal users and web developers in Microsoft Windows OS. Sometimes, it is also desirable to use Chrome in Linux OS. This post describes the steps to install Chrome… Read More
pypi mirror from aliyun
When I use ‘pip install xxx’ command to install a python package, the pip command will download the package from https://pypi.org/simple and then install it. However, downloading packages from the URL https://pypi.org/simple is relatively slow from China. I recommend to use… Read More
raw.githubusercontent.com的DNS记录被污染了
今天晚上我在自己的Ubuntu系统上,执行如下命令,想安装pyenv工具: curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash 结果遇到错误,报connection refused。 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
hello world 2021
Nearly one month has passed since 2021. when looking back in 2020, I went though a lot of things. Some of them made me sad, even crying, while some others inspired me and pushed me to advance towards the good… Read More
bash command history
Yesterday morning after arriving at the office, I booted up my laptop as usual and tried to connect to my Linux development server using putty. However, the ssh connection couldn’t be established successfully. After struggling for a while, I found… Read More
an introduction to policy-based routing in Linux
A few days ago I was assigned a task to create pods with multiple network interfaces in the Kubernetes. It is not a difficult task, because it only requires a few annotations for the pods, provided that the CNI network… Read More
request access token from keycloak using restapi
A few days ago, I was assigned a task to write a script to request access token from keycloak using restapi. After googling in the internet, I got the answer. Mark it here for later reference: curl -L -X POST… Read More
disable disk check during bootup for Ubuntu
As I mentioned in this post, I am using Ubuntu Linux in my xiaomi laptop. However, I am disturbed now and then these days by the disk check during the Ubuntu bootup. If I miss the very first few seconds,… Read More