Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

To connect to Hadoop using Java

avatar
Explorer

Hi,

How to connect to Hadoop in a Java program. Here are few details: I am taking input from the user in HTML form, using JSP to process the form data. I want to connect to Hadoop to fetch some data based on form inputs. How can I connect to Hadoop using Java in this case?

Thanks

Hari

1 REPLY 1

avatar
Super Collaborator

Connect to which part of Hadoop? HDFS, Hive, HBase?

If HDFS, you can use WebHDFS from any programming language with an HTTP client, or you can include the hadoop-common library in your code via Maven, for example.

If HBase, there are Java clients you can find.

If Hive, you can use JDBC.