create database test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; -- 创建数据库 show databases; -- 创建账号 Create user 'test'@'%' identified by 'test'; Grant all privileges on test.* to test@'%' identified by 'test' with grant option; -- 刷新权限设置 flush privileges; sqoop 安装
$ bin/sqoop create-hive-table \ --connect jdbc:mysql://hadoop102:3306/company \ --username test \ --password test \ --table test \ --hive-table test sqoop 全量导入表