Weird errros with Apache Spark / Beam / Scio?
For most of 2019 and early 2020, this will most likely be caused by not having the right Java version.
As of August 2019, all big data frame works mostly are written and compatible with Java 8.
Check your java version here:
$ java -version