Mac OS SSH Kerberose Single-Sign-On
To use Kerberos Single-Sign-On on a MacBookPro, you can do as follows:Make a copy of /etc/krb5.conf from a server in your company network.Save it into /etc/krb5.confon your MacBookPro. You probably...
View ArticleSpark SQL AnalysisException due to data type mismatch
If you run the following code, you will encounter AnalysisException with data type mismatch.spark.sql("create table test_table(id int, data struct<name: string, age:int>)")spark.sql("insert...
View ArticleVNC server won't start on my CentOS 7
I had to ask my boss to power down and power up the desktop in my office this morning. After the desktop came back, I could not access the vncserver because it failed to start. And I got this error...
View ArticleAllow the outside world access your server in a container
I run docker containers of Nexus and httpd on a CentOS 7 host. I added a nexus.service to start the containers using docker-compose. I could access the nexus server from any machine after I started the...
View Article"No such a file or directory" when setting NETGEAR router
I got this error when I was setting up a new NETGEAR X6 router after setting up the new password. I restored the factory settings multiple times, but it either showed "No such a file or directory" for...
View ArticleHow to make VNC sharp on Retina display.
Most of time, I work on a Linux box running CentOS 7 through VNC. The largest VNC screen size is 1920x1080 (16:9). It is ok when you maximize the RealVNC viewer window on an external monitor with that...
View ArticleMake Intellij IDEA on Linux with sharp fonts as Macbook Pro
IntelliJ IDEA supports HiDPI on Windows and MacOS. The fonts look so beautiful on a Macbook Pro Retina Display. Unfortunately IDEA doesn’t support HiDPI on Linux. Looks at the code...
View ArticleRead HAR to Spark DataFrame
When I use spark-streaming to pull JSON events from a Kafka topic and persist the data into HDFS, I have to handle a lot of tiny files because the volume of the Kafka topic is pretty small. Too many...
View ArticleAutomic Application Manager V9 Client: Run with Java 9
My team uses Automic AM v9.1.0 (v9.1.0_28363_28431), which is configured with Java 6 and Java 7 by default. It also works in Java 8. However, if you run it with Java 9, you will encounter network error...
View ArticleWSL mv permission denied
If you get "Permission Denied" when you `mv` a file, check if you open the parent directory of the file in Windows Explorer. If so, close Windows Explorer or change it to another directory, and try...
View Article