Alex's Hadoop cainiao Tutorial: 6th Sqoop2 installation tutorial, hadoopsqoop2

Source: Internet
Author: User
Tags sqoop

Alex's Hadoop cainiao Tutorial: 6th Sqoop2 installation tutorial, hadoopsqoop2
Install sqoop on the server and client. Install the server first.

$ sudo yum install sqoop2-server

Then install the client
$ sudo yum install sqoop2-client

Server configurations are divided into MRv1 and YARN (Map Reduce 2 generation ).
YARN
alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-conf.dist

MRv1
alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-conf.mr1

Install JDBC driver first download jdbc driver http://dev.mysql.com/downloads/file.php? After downloading, decompress the package and copy a mysql-connector-java-5.1.34-bin.jar to the/var/lib/sqoop2/directory.
Start Sqoop2
$ sudo /sbin/service sqoop2-server start

Stop
$ sudo /sbin/service sqoop2-server stop


Check whether startup is successful
$ wget -qO - localhost:12000/sqoop/version

Output
{"version":"1.99.2-cdh5.0.0",...}

Start the client
sqoop2

Output
Sqoop home directory: /usr/lib/sqoop2Sqoop Shell: Type 'help' or '\h' for help.sqoop:000> 

Connect to the server. Assume that your server is localhost.
sqoop:000> set server --host localhost

Test the sqoop command.
sqoop:000> show version --allclient version:  Sqoop 1.99.3-cdh5.0.1 revision Unknown   Compiled by jenkins on Tue May  6 14:02:38 PDT 2014server version:  Sqoop 1.99.3-cdh5.0.1 revision Unknown   Compiled by jenkins on Tue May  6 14:02:38 PDT 2014Protocol version:  [1]




Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.