Trying to use SSO (WIndows environment)

I knew and followed your video. It helped me a lot and I only had to make a few small changes.
But everything you said in that video is about the Openfire server and I was wondering why Spark says it’s unable to find the primary to use for SSO.
I mean, how does Spark know which SPN to query?
In this link https://discourse.igniterealtime.org/t/sso-configuration/49064, Jay was talking about Principal vs Service Principal.
So, If Spark is looking for about Principal, how does Spark know who that user is?

Thanks in advance.

Kind regards.