@Lo
Good Day!! Even though you submit spark-submit via JDBC the request goes through the HMS. HMS detects the type of client for interacting with it, for example, Hive or Spark, and acts accordingly. If you see any timeout requests in the logs you can adjust the below property.
hive.metastore.client.socket.timeout=<to a higher value>
Check and let us know If this helped.