Connecting to Mongo from spark cluster using kerberos authentication

Hi all,
We are using cloudera hadoop data platform with Spark 2.4. The hadoop cluster is kerberised. We have a mongodb standalone cluster which uses kerberos authentication. I am trying to use pyspark to connect to mongodb by supplying principal and keytab. Spark is running in cluster mode. I am not able to connect to mongo. Can someone please help by providing an example of how this connection can be established?