Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

To connect to Hadoop using Java

New Contributor

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

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.