继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Hive Metastore部署方式

慕姐8265434
关注TA
已关注
手记 1295
粉丝 222
获赞 1065

Metastore 有三种部署方式

  • embedded mode (Metastore 和 db 都运行在 Hive Service进程中)

  • local mode (Metastore 运行在 Hive Service进程中)

  • remote mode (Metastore , Hive Service, db 运行在不同的进程中)

Embedded Mode

Cloudera recommends using this mode for experimental purposes only.

webp

Embedded mode is the default metastore deployment mode for CDH. In this mode, the metastore uses a Derby database, and both the database and the metastore service are embedded in the main HiveServer process. Both are started for you when you start the HiveServer process. This mode requires the least amount of effort to configure, but it can support only one active user at a time and is not certified for production use.

Local Mode

webp

In Local mode, the Hive metastore service runs in the same process as the main HiveServer process, but the metastore database runs in a separate process, and can be on a separate host. The embedded metastore service communicates with the metastore database over JDBC.

Remote Mode

Cloudera recommends that you use this mode.

webp

In Remote mode, the Hive metastore service runs in its own JVM process. HiveServer2, HCatalog, Impala, and other processes communicate with it using the Thrift network API (configured using the hive.metastore.uris property). The metastore service communicates with the metastore database over JDBC (configured using the javax.jdo.option.ConnectionURL property). The database, the HiveServer process, and the metastore service can all be on the same host, but running the HiveServer process on a separate host provides better availability and scalability.

The main advantage of Remote mode over Local mode is that Remote mode does not require the administrator to share JDBC login information for the metastore database with each Hive user. HCatalog requires this mode.

官方文档



作者:阿武z
链接:https://www.jianshu.com/p/4c9e270cb0bf


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP