Search code examples
databasehdfshbaseapache-nifi

How to send a csv from my local machine HBASE using nifi?


I am very new to DBMS and nifi platforms.

I am learning it and now I want to send a .csv file with some data from my local machine to HBASE using nifi.

It would be good to know the steps to be followed.

Also, to run hbase do I also need to install HDFS ?


Solution

  • No, you don't require HDFS to install HBASE. HBASE can be installed using your local file system also. It can be installed in different different modes. Find the link below on the same, by this you will get an idea of different installation modes.

    Install HBASE in different modes

    Also, you want to ingest data from CSV file to some HBASE table. You can use a couple of processors to do so. Please find the steps below :

    1. Read file : Get File Processor Details
    2. Parse CSV file : CSVReader Processor Details
    3. Put data into HBASE : PutHBaseCell OR PutHbasejSON OR PutHbaseRecord (Use appropriate processor as per your scenario)