Install and configure Sqoop for MySQL in the Hadoop cluster environment,
Sqoop is a tool used to transfer data from Hadoop to relational databases. It can import data from a relational database (such as MySQL, Oracle, and S) into Hadoop HDFS, you can also import HDFS data to
Sqoop is a tool used to transfer data from Hadoop and relational databases to the HDFS of a relational database (such as MySQL, Oracle, Postgres, etc.). HDFs data can also be directed into a relational database.
One of the highlights of Sqoop is the fact that you can import data from a relational database to HDFs via Hadoop
Overview
Sqoop is a top-level Apache project 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.Sqoop architecture: the sqoop architecture is very simple. It integrates hive, hbase, and
Tags: unable to strong profile node height Apach JDK Install expSqoop is an open source tool that is used primarily in Hadoop (Hive) and traditional databases (MySQL, PostgreSQL ...) Data can be transferred from one relational database (such as MySQL, Oracle, Postgres, etc.) to the HDFs in Hadoop, or the data in HDFs can be directed into a relational database. The Sqoop
master HBase Enterprise-level development and management• Ability to master pig Enterprise-level development and management• Ability to master hive Enterprise-level development and management• Ability to use Sqoop to freely convert data from traditional relational databases and HDFs• Ability to collect and manage distributed logs using Flume• Ability to master the entire process of analysis, development, and deployment of
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
master HBase Enterprise-level development and management• Ability to master pig Enterprise-level development and management• Ability to master hive Enterprise-level development and management• Ability to use Sqoop to freely convert data from traditional relational databases and HDFs• Ability to collect and manage distributed logs using Flume• Ability to master the entire process of analysis, development, and deployment of
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
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/47722393 not allowed to reprint without the Bo master.1, about SqoopSqoop is a tool that transfers data from Hadoop and relational databases to each other, and can import 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.Official website: http://sqoop.apache.org/A 1.4.6 ve
1. Environment tool Version Introduction
Centos6.4 (final)
Jdk-7u60-linux-i586.gz
Hadoop-1.1.2.tar.gz
Sqoop-1.4.3.bin__hadoop-1.0.0.tar.gz
Mysql-5.6.11.tar.gz
2. Install centos
Refer to the use of online Ultra to create a USB flash drive to start and directly format the installation system. There are a lot of information on the Internet, but it is best not to change the host name during installation, also,
;
+----+------+------+ |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
Use Sqoop to import MySQL Data to Hadoop
The installation and configuration of Hadoop will not be discussed here.Sqoop installation is also very simple. After Sqoop is installed and used, you can test whether it can be connected to mysql (Note: The jar package of mysql should be placed under SQOOP_HOME/lib ):
OverviewSqoop is an Apache top-level project that is used primarily to pass data in Hadoop and relational databases. With Sqoop, we can easily import data from a relational database into HDFs, or export data from HDFs to a relational database.
Sqoop Architecture:
The Sqoop architecture is simple enough to integrate hiv
Use sqoop to import mysql Data to hadoop
The installation and configuration of hadoop will not be discussed here.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_HOME/lib):
Tags: mysql hive jdbc Hadoop sqoopThe installation configuration of Hadoop is not spoken here.The installation of Sqoop is also very simple. After you complete the installation of SQOOP, you can test if you can connect to MySQL (note: The MySQL Jar pack is to be placed under Sqoop_home/lib):
Tags: des style blog http ar os using SP onThe installation configuration of Hadoop is not spoken here. The installation of Sqoop is also very simple. After you complete the installation of SQOOP, you can test if you can connect to MySQL (note: The MySQL Jar pack is to be placed under Sqoop_home/lib):Sqoop list-databas
statement)Sqoop Import--connect jdbc:mysql://192.168.1.10:3306/itcast--username root--password 123 \--query ' SELECT * from Trade_detail where ID > 2 and $CONDITIONS '--split-by trade_detail.id--target-dir '/sqoop/td3 'Note: If you use the--query command, it is important to note that the argument after the where, and $CONDITIONS This parameter must be addedAnd there is the difference between single and dou
Tags: lin replace tell database hang CAs install prompt relationshipThe sqoop1.4.6 how to import MySQL data into the Sqoop installation of Hadoop is described in the previous article , and the following is a simple use command for data interoperability between the two. Display MySQL database information, General Sqoop installation testSqoop list-databases--connec
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
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.