Use kettle timing extraction tool mysql data to the cluster table hbase (IV)

Extracting mysql data table hbase

 

1. Create a table in the hbase

$ hbase shell(进入shell)

$ Create 't1', 'f1' (create a table, a table named t1, there is a column called f1 cluster)

$ Scan 't1' (see table of contents, then empty)

 

Drawn into the input table used in Hadoop, corresponding to the configuration database 2. Before the kettle, or the use of the source.

   Output of the selector hbase output

3. Double-click hbase output for editing

 4. The connection configuration hadoop

 

5. hbase mapping configuration. Click Create / edit mapping in numerical order.

1) to obtain the name of the table hbase, and then select the t1 table created earlier.

2) manually fill mapping relationship, you can click to automatically match 2

3) must take a key change Y, so that it can determine where to start mapping

4) to map named m1

5) Storage

6.点击Configuration connection

 

1) Select the configuration of our hadoop

2) Click to get table names hbase get a table, select a

3) Select the mapping table corresponding to

 

7. perform the conversion

Guess you like

Origin blog.csdn.net/github_39538842/article/details/92612872