How to allow apache hive to handle multiple clients query

放肆的年华 提交于 2019-12-22 01:37:46

问题


I have created an external table via hive from hbase. When someone loged in to shell and deploy some queries , no one else can run any query. when someone try to run a quesry it gives following error.

FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

when first shell exits then queries can be run easily. So it means that my hive a cannot handle multiple clients. How to enables it to handle multiple clients


回答1:


If you have not configured your Hive Metastore, its not possible for more than one user to access the Hive Server.

Embedded Metastore An embedded metastore is mainly used for unit tests. Only one process can connect to the metastore at a time, so it is not really a practical solution but works well for unit tests

Check this link for more information.



来源:https://stackoverflow.com/questions/26418069/how-to-allow-apache-hive-to-handle-multiple-clients-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!