spark-hive集成: 將hive-site.xml拷貝到spark的conf目錄下也能夠建立軟鏈接(ln -s /usr/local/devtools/cdhbigdata/cdhhive/hive-0.13.1-cdh5.3.6/conf/hive-site.xml) 更具hive.metastore.uris選擇不一樣的方式: 1:hive.metastore.uris配置了:啓動hive的metastore服務 hive --service metastore & 2:hive.metastore.uris沒有配置:將hive元數據驅動拷貝到spark的classpath中便可 集成測試 ./bin/spark-sql show databases; webUI http://xupan001:4040/jobs/