Thursday 25 August 2016

SQOOP Import to HBase

Sqoop can also import data into additional targets like HBase other than HDFS and Hive. The following arguments are used in sqoop to import data from RDBMS to HBase-

--hbase-table <table_name>
                This argument instructs sqoop to import the data to the specified hbase table rather than importing into HDFS location. This argument can be used when the table in the hbase already exists or can be used to newly create a table along with the –hbase-create-table argument.

--hbase-row-key <column>
                This argument instructs sqoop which column of RDBMS should be the Row Key in HBase.

--hbase-create-table
                This argument creates a new table in hdfs if the table doesn’t exist.

sqoop import \
--connect jdbc:mysql://localhost/cts571687?user=root \
--table incremental_mysql \
--hbase-table hbase_newimport \
--hbase-row-key movieid \
--column-family metadata \
--hbase-create-table \
-m 1

18 comments:

  1. I am very much interested in Data analyst, your blog gives me knowledge on how data statistics are predicted. Thank you admin
    Regards
    Big Data Training in Chennai | Big Data Training

    ReplyDelete
  2. Great Article. As I read the blog I felt a tug on the heartstrings. it exhibits how much effort has been put into this.
    IEEE Projects for CSE in Big Data

    Spring Framework Corporate TRaining

    Final Year Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete
  3. very nice blog,keep sharing more blogs with us.

    Thank you...

    big data and hadoop online training

    ReplyDelete
  4. Thanks for sharing this article about seo. i read your blog every time.. oracle training in chennai

    ReplyDelete


  5. This post is so interactive and informative.keep update more information...
    Advantages of Machine Learning
    Benefits of Machine Learning

    ReplyDelete
  6. This post is so interactive and informative.keep update more information...
    AWS Training in Anna Nagar
    AWS Training in Chennai

    ReplyDelete
  7. This post is so interactive and informative.keep update more information...
    hadoop training in tambaram
    Big data training in chennai

    ReplyDelete
  8. Your blog post is so informative for me .Thanks for sharing this valuble post.CodeCraft Full Stack Development Strategies for Modern Applications

    ReplyDelete