spark 连接 hive 报错 Identifier principalName is unresolved (not a static field)

spark连接hive的mysql元数据库metastore,不能直接访问,需要通过metastore server间接访问

因此需要开启元数据服务

修改hive-site.xml配置


        hive.metastore.uris
        thrift://master:9083

开启元数据服务

hive --service metastore

你可能感兴趣的:(spark,hive)