HDP 3.1
ambari 2.7.4
hive 3.1.0
spark 2.3.0
cp /usr/hdp/3.1.4.0-315/hive/conf/hive-site.xml /usr/hdp/3.1.4.0-315/spark2/conf2. 添加hdfs core 配置到spark下
cp /usr/hdp/3.1.4.0-315/hadoop/conf/hdfs-site.xml core-site.xml /usr/hdp/3.1.4.0-315/spark2/conf3. 将数据库连接jar包放入spark2/jars目录下
cp mysql-connector-java你的jar包.jar /usr/hdp/3.1.4.0-315/spark2/jars4. 查看hive对应配置并修改spark配置
可以查看到hive创建的表



