Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to loop trough data in Hive?
Labels:
- Labels:
-
Apache Hive
New Contributor
Created on 06-22-2018 09:45 AM - edited 09-16-2022 06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to loop through data inside my Hive tables, ¿which is the best tool in order to do that?
I have been searching and I do not find the answer.
Thanks!
2 REPLIES 2
Super Guru
Created 06-30-2018 12:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you explored Hive JDBC driver ,which you can connect from Java code, query Hive tables and loop through data.
Official site:
https://www.cloudera.com/downloads/connectors/hive/jdbc/2-6-1.html
Doc:
http://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apa...
Hope helps.
Official site:
https://www.cloudera.com/downloads/connectors/hive/jdbc/2-6-1.html
Doc:
http://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apa...
Hope helps.
Super Guru
Created 06-30-2018 01:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I understand you better from your another post:
http://community.cloudera.com/t5/Batch-SQL-Apache-Hive/Something-similar-to-PL-HQL-available-on-Clou...
Currently Hive does not support loop, so you might have to do it at application level.
http://community.cloudera.com/t5/Batch-SQL-Apache-Hive/Something-similar-to-PL-HQL-available-on-Clou...
Currently Hive does not support loop, so you might have to do it at application level.
