1.配置hive-site.xml 在master1上的/usr/local/spark/spark-1.6.0-bin-hadoop2.6/conf目录创建hive-site.xml文件,内容如下: Java代码 hive.metastore.uris thrift://master1:9083 Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.