摘要: 一、创建数据库并使用数据库 --创建数据库 create database if not exists lyq; --使用数据库 use lyq 二、创建所需要的表,并插入数据 --创建表 -- 课程表 create table if not exists course(course_id int, 阅读全文
posted @ 2020-11-25 23:31 蔡地像徐坤 阅读(301) 评论(0) 推荐(0)
摘要: 一、将mysql数据库中表的数据导入到hdfs 1.sqoop的参数sqoop import \--connect jdbc:mysql://master:3306/数据库名 \--username root \--password 123456 \--table 表名 \--target-dir 阅读全文
posted @ 2020-11-25 23:18 蔡地像徐坤 阅读(161) 评论(0) 推荐(0)