Hive on spark 报错FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.spark

解决方法如下:

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/

你可能感兴趣的:(hadoop,经验)