赞
踩
[root@hadoop01 ~]# sqoop list-databases --connect jdbc:mysql://hadoop03:3306 --username root --password 123456;
[root@hadoop01 ~]# sqoop list-tables --connect jdbc:mysql://hadoop03:3306/hive --username root --password 123456;
- [root@hadoop03 ~]# mysql -uroot -p123456;
- mysql> create database test_sqoop;
- mysql> use test_sqoop;
- mysql> create table emp(
- -> empno INT primary key,
- -> ename VARCHAR(50),
- -> job VARCHAR(50),
- -> mgr INT,
- -> hiredate DATE,
- -> sal DECIMAL(7,2),
- -> comm decimal(7,2),
- -> deptno INT);
insert into emp values(2201,'Bob','salesman',2205,'2018-10-14
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。