Im trying to run Scala jar in databricks cluster, getting HiveException: Unable to execute method public java.lang.String udfDecrypt.evaluate(java.lang.String) with arguments {***gAAAAABgKpJSbxtLkTiED3B3bMGEV0pdgMuE4km85NWJQ4Rh9zzV9pW1TN-wnfTx0-sikuAYGIN6vnIoFBacFT3MRcF5W7dBmeNNaRZbzC69ij77R2LyB5Q=}:null Caused by: InvocationTargetException: Caused by: NullPointerException:
from below code while reading secret from databricks secret scope,
import com.databricks.dbutils_v1.DBUtilsHolder.dbutils
val DecryptionKey: String = dbutils.secrets.get("secretDatabricks","PIIDecryptionKey")
Please guide me if im doing anything wrong! Thanks in advance!