解决方法如下:
cp /opt/cloudera/parcels/CDH-5.13.3-1.cdh5.13.3.p0.2/lib/spark/lib/spark-assembly.jar /opt/cloudera/parcels/CDH-5.13.3-1.cdh5.13.3.p0.2/lib/hive/lib/
cp /etc/hadoop/conf/yarn-site.xml /etc/spark/conf/
cp /etc/hadoop/conf/mapred-site.xml /etc/spark/conf/
cp /etc/hive/conf/hive-site.xml /etc/spark/conf/
cp /etc/hadoop/conf/hdfs-site.xml /etc/spark/conf/
cp /etc/hadoop/conf/core-site.xml /etc/spark/conf/