Exceptions in Java
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
You can suppress warnings of unchecked exceptions by using
SuppressWarnings("unchecked")but generally speaking, you cannot suppress warnings of checked exceptions.
-
You can use more than one
catchblocks if necessary …
Get Resources in Java
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
getResourceandgetResourceAsStreamtries to find files in theresourcesdirectory undersrc/main/resourcesorsrc/test/resources(depending on whether you are running the application or tests for the …
A JNI Error Has Occured
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Error Messages
Error: A JNI error has occurred, please check your installation and try again
Caused by: java.lang.ClassNotFoundException: org.apache.spark.sql.SparkSession
Cause
Some dependencies (Spark in this …
Case of Column Names in Spark DataFrames
Comments¶
Even though Spark DataFrame/SQL APIs do not distinguish cases of column names, the columns saved into HDFS are case-sensitive!
Use Kotlin in a Scala Project
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
Methods of a Kotlin object can be called in a Scala project by
KotlinObject.INSTANCE.methodToCall() -
You might need to provide the Kotlin standard library
kotlin-stdlib.jarin order to run …