Git Product home page Git Product logo

tp-hbase-'s Introduction

HBase Database Interaction with Java

This Java application showcases how to connect to an HBase database and perform basic operations such as creating tables and inserting data .

Overview

The code accomplishes the following tasks:

  1. Configuration Setup: It configures the connection settings for HBase, including the ZooKeeper quorum and client port.

  2. Connection Establishment: It establishes a connection to the HBase database using the configured settings.

  3. Table Creation: It checks if a table named "users" exists. If not, it creates the table with two column families: "personal data" and "professional data".

  4. Data Insertion: It inserts sample data into the "users" table under a specified row key. The sample data includes personal and professional information.

  5. Status Reporting: It prints status messages indicating the success of table creation and data insertion.

  6. Data Deletion: It deletes all the data.

Capture d'écran 2024-04-15 173049

To make sure that everything is working we cun run directly commands in the hbase-master container :

image

tp-hbase-'s People

Contributors

khawla12-op avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.