Step One: Enter the client shell
fulong@fbi008:~$ sqoop.sh Client
Sqoop Home directory:/home/fulong/sqoop/sqoop-1.99.3-bin-hadoop200
Sqoop shell:type ' help ' or ' \h ' for help.
Sqoop:000> Set server--host FBI003--port 12000--webapp
I. Introduction of SqoopSqoop is a tool for transferring data from Hadoop (Hive, HBase), and relational databases, to importing data from a relational database (such as MySQL, Oracle, Postgres, etc.) into Hadoop's HDFs. You can also import HDFs data into a relational database.Sqoop is now an Apache top-level project, and the current version is 1.4.4 and Sqoop2 1.99.3, this article takes the 1.4.4 version as an example to explain the basic installation
Test connection usage for Oracle database① Connect to Oracle database, list all databases[[email protected] sqoop] $sqoop list-databases--connect jdbc 10.1.69.173:1521:orclbi--username huangq-por Sqoop list-databases--connect jdbc Racle:thin10.1.69.173:1521:orclbi--username Huangq--password 123456 or Mysql:sqoop list-databases--connectjdbc:mysql://172.19.17.119:3
Install and verify the Sqoop installation and verification environment:
System
Redhatlinux 6.4
HadoopVersion
1.2.1
SqoopVersion
1.4.4
MysqlDatabase version
5.6.15
Implement data http://www.linuxidc.com/Linux/2013-06/85817.htm between Mysql/Oracle and HDFS/Hbase through Sqoop
[Hadoop] Sqoop installation proces
Tags: hadoop HDFS sqoop MySQL
Sqoop is a plug-in the hadoop project. You can import the content in HDFS of the Distributed File System to a specified MySQL table, or import the content in MySQL to the HDFS File System for subsequent operations.
Test Environment Description:
Hadoop version: hadoop-0.20.2
Sqoop: sqoop-1
Use sqoop to import data from a MySQL database to hbase
Prerequisites: Install sqoop and hbase.
Download jbdc DRIVER: mysql-connector-java-5.1.10.jar
Copy the mysql-connector-java-5.1.10.jar to/usr/lib/sqoop/lib/
Command for importing hbase from MYSQL:Sqoop import -- connect JDBC: mysql: // 10.10.97.116: 3306/Rsearch -- table researchers -- hbase-Table A -- colum
Deployment Installation # Sqoop is a tool for transferring data from Hadoop and relational databases to each other, and can lead data from a relational database (e.g. MySQL, Oracle, Postgres, etc.) into the HDFs of Hadoop. HDFs data can also be directed into a relational database.# Deploy Sqoop to 13.33, reference documentation: Sqoop installation configuration a
SQOOP is an open-source tool mainly used for data transmission between Hadoop and traditional databases. The following is an excerpt from the SQOOP user manual.
Sqoopis a tool designed to transfer data between Hadoop and relational databases. you can use Sqoop to import data from a relational database management system (RDBMS) such as MySQL or Oracle into the Had
1, Ali Open source software: datax
Datax is a heterogeneous data source offline Synchronization tool that is dedicated to achieving stable and efficient data synchronization between heterogeneous data sources including relational databases (MySQL, Oracle, etc.), HDFS, Hive, ODPS, HBase, FTP, and more. (Excerpt from Wikipedia)
2. Apache Open source software: Sqoop
Sqoop
Recently in the data analysis of a traffic flow, the demand is for a huge amount of urban traffic data, need to use MapReduce cleaning after importing into hbase storage, and then using the Hive External table associated with hbase, hbase data query, statistical analysis, Save the analysis results in a hive table, and finally use Sqoop to import the data from that table into MySQL. The whole process is probably as follows:
Below I mainly
Official sqoop Website:
Http://sqoop.apache.org/
*) Sqoop IntroductionSqoop is used to transmit data in hadoop and relational databases. Through sqoop, we can easily import data from a relational database to HDFS, or export data from HDFS to a relational database.
Reference link:Http://blog.csdn.net/yfkiss/article/details/8700480
*) Simple Sample CasesObjective:
SqoopRelational DB and Hive/hdfs/hbase import the exported MapReduce framework.Http://archive.cloudera.com/cdh5/cdh/5/sqoop-1.4.4-cdh5.1.0/SqoopUserGuide.htmlEtl:extraction-transformation-loading abbreviations, data extraction, transformations (business processing), and loading.File data Source: Hive load CommandRelational DB data Source: Sqoop ExtractionSqoop Import data to hdfs/hive/hbase--> Business proc
Sqoop installation: Installed on a node on the can.1. Upload Sqoop2. Install and configure add SQOOP to environment variable copy the database connection driver to $sqoop_home/lib 3. Use the first class: Data in the database is imported into HDFs SQOOP import--connect jdbc:mysql://192.16 8.1.10:3306/itcast--username root--password 123--table trade_detail--columns
Operating Environment CentOS 5.6 Hadoop HiveSqoop is a tool developed by the Clouder company that enables Hadoop technology to import and export data between relational databases and hdfs,hive.Shanghai still school Hadoop Big Data Training Group original, there are hadoop big Data technology related articles, please pay more attention!Problems you may encounter during use:
Sqoop relies on zookeeper, so zookeeper_home must be configured in the
BackgroundSqoop is a tool used to transfer data from Hadoop and relational databases (RDBMS) to each other. When using Sqoop, we need to provide the access password for the database. Currently Sqoop supports 4 ways to enter passwords:
Clear text mode.
Interactive mode.
File mode.
Alias mode.
The author uses the Sqoop in CDH5.10, the vers
;
+----+------+------+ |id|name|age| +----+------+------+ |7|a|1| | 8|b|2| |9|
c|3| +----+------+------+ 3rowsinset (0.00sec) 2. Licensing for individual users Note: After the Sqoop commits the job, each node accesses the database during the map phase, so the prior authorization is required mysql> Grant [All | select | ...] on {db}. {table} to {User}@{host} identified by {passwd};
mysql> flush Privileges;
#我给特定的hostname授权 username:root passwd:root Ac
Sqoop installation is also very simple. After sqoop is installed, you can test whether it can be connected to mysql (Note: The jar package of mysql should be placed under SQOOP_HOMElib ):
Sqoop installation is also very simple. After sqoop is installed, you can test whether it can be connected to mysql (Note: The jar p
Sqoop Although the stable application in the production environment for many years, but some of its own shortcomings to the actual operation caused inconvenience. Sqoop2 became the object of research, so what are the advantages of SQOOP2? First of all, we first understand the use of Sqoop, using sqoop data will not be lost, and
Sqoop is used to import and export data.(1) Import data from databases such as MySQL, Oracle, etc. into HDFs, Hive, HBase (2) Export data from HDFs, Hive, hbase to MySQL, Oracle and Other databases (3) Import and export transactions are in mapper task units. 1, Sqoop installation steps1.1, Execution command: TAR-ZXVF sqoop-1.4.3.bin__hadoop-1.0.0.tar.gz decompres
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.