Spark submit runs successfully but when submitted through oozie it fails to connect to hive
I had the same issue - I fixed it by using the parameter --files /etc/hive/conf/hive-site.xml
in my spark-submit job. (first I tried it in the shell and then in oozie, because I launched a .sh file that contains the spark-submit sencence)