如何以编程方式从JSP提交Hive Jobs

时间:2022-11-24 19:02:00

We are trying to build a wrapper system for business users and we want to explore option of building a capability to submit the HIVE query from a JSP page. I could not find a best example or suggested mechanism for this. Anyone tried this before? If so can someone share their best ideas? We are looking for the REST API mechanism. If that wont work, then we can use java from JSP servlets.

我们正在尝试为业务用户构建一个包装器系统,我们希望探索构建从JSP页面提交HIVE查询的功能的选项。我找不到最好的例子或建议的机制。以前有人试过吗?如果是这样,有人能分享他们最好的想法我们正在寻找REST API机制。如果那不起作用,那么我们可以使用来自JSP servlet的java。

Appreciate your support.

感谢您的支持。

Kiran

1 个解决方案

#1


You can use JDBC. I dont think there is a REST API for Hive.

您可以使用JDBC。我不认为Hive有一个REST API。

But since most developers & application typically use JDBC this should be the preferred mode.

但由于大多数开发人员和应用程序通常使用JDBC,因此这应该是首选模式。

More details can be found here (Assuming you are using latest Hive versions) : Hive 2 Clients

更多细节可以在这里找到(假设您使用的是最新的Hive版本):Hive 2客户端

Sample code sample code

示例代码示例代码

#1


You can use JDBC. I dont think there is a REST API for Hive.

您可以使用JDBC。我不认为Hive有一个REST API。

But since most developers & application typically use JDBC this should be the preferred mode.

但由于大多数开发人员和应用程序通常使用JDBC,因此这应该是首选模式。

More details can be found here (Assuming you are using latest Hive versions) : Hive 2 Clients

更多细节可以在这里找到(假设您使用的是最新的Hive版本):Hive 2客户端

Sample code sample code

示例代码示例代码