Home > Database > Mysql Tutorial > body text

sqoop导入hbase

WBOY
Release: 2016-06-07 16:41:27
Original
1477 people have browsed it

list-tables sqoop list-tables --connect jdbc:mysql://192.168.40.194/sqoop --username root --password=root 建表及数据导入 sqoop import --connect jdbc:oracle:thin:@69.16.22.106:1521:tjsatbi --table FWSK.DM_HY --username SJCX --password sjcx

list-tables

<code>sqoop list-tables --connect jdbc:mysql://192.168.40.194/sqoop --username root --password=root
</code>
Copy after login

建表及数据导入

<code>sqoop import --connect jdbc:oracle:thin:@69.16.22.106:1521:tjsatbi --table FWSK.DM_HY --username SJCX --password sjcx --column-family cf --hbase-create-table --hbase-table sqoop_hy --hbase-row-key HY_DM --verbose -m 1
</code>
Copy after login

增量导入

<code>sqoop import --connect jdbc:oracle:thin:@69.16.22.106:1521:tjsatbi --table FWSK.DM_HY --username SJCX --password sjcx --column-family cf --hbase-table sqoop_hy --hbase-row-key HY_DM --incremental append --check-column HY_DM --last-value 9900 --verbose -m 1
</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template