需要启动一个独立的metastore server,然后hive.metastore.uris配置的是你metastore server的地址。 最简单的场景,在本地启动metastore server命令:hive --service metastore hive.metastore.uris设置成:thrift://localhost:9083
更详细的metastore使用方法可以参考hive文档: https://cwiki.apache.org/confluence/display/Hive/AdminManual+Metastore+Administration On Thu, Jun 18, 2020 at 5:21 PM Sun.Zhu <17626017...@163.com> wrote: > 对应这种改动还是挺大的,有对应的说明文档吗? > hive.metastore.uris 这个需要怎么配置,有样例吗? > > > | | > Sun.Zhu > | > | > 17626017...@163.com > | > 签名由网易邮箱大师定制 > > > 在2020年06月18日 17:01,Rui Li<lirui.fu...@gmail.com> 写道: > > 是的,embedded模式需要添加额外的jar包,容易导致依赖冲突。而且生产环境中embedded模式也比较少见,所以在1.11中HiveCatalog已经不允许embedded模式了。 > > On Thu, Jun 18, 2020 at 4:53 PM Leonard Xu <xbjt...@gmail.com> wrote: > > > Hi > > 在 2020年6月18日,16:45,Sun.Zhu <17626017...@163.com> 写道: > > Caused by: java.lang.IllegalArgumentException: Embedded metastore is not > allowed. Make sure you have set a valid value for hive.metastore.uris > > 错误的原因应该是这个,flink 集成 hive 时 不支持embedded metastore的,你的 hive 需要起一个hive > metastore 并在conf文件配置 hive.metastore.uris > > Best, > Leonard Xu > > > > -- > Best regards! > Rui Li > -- Best regards! Rui Li