Home >Database >Mysql Tutorial >Alex的Hadoop菜鸟教程:第6课Sqoop2安装教程
安装 sqoop 分为服务端和客户端,先安装服务端 $ sudo yum install sqoop2-server 再安装客户端 $ sudo yum install sqoop2-client 服务端 配置 分为 MRv1 和 YARN(Map Reduce 2代)两种情况 YARN alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-
$ sudo yum install sqoop2-server
$ sudo yum install sqoop2-client
alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-conf.dist
alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-conf.mr1
$ sudo /sbin/service sqoop2-server start
$ sudo /sbin/service sqoop2-server stop
$ wget -qO - localhost:12000/sqoop/version
{"version":"1.99.2-cdh5.0.0",...}
sqoop2
Sqoop home directory: /usr/lib/sqoop2 Sqoop Shell: Type 'help' or '\h' for help. sqoop:000>
sqoop:000> set server --host localhost
sqoop:000> show version --all client version: Sqoop 1.99.3-cdh5.0.1 revision Unknown Compiled by jenkins on Tue May 6 14:02:38 PDT 2014 server version: Sqoop 1.99.3-cdh5.0.1 revision Unknown Compiled by jenkins on Tue May 6 14:02:38 PDT 2014 Protocol version: [1]