Hive数据导入
-
mysql导入到hive
使用Sqoop工具将MySQL数据导入到Hive中,首先配置好环境变量,然后执行以下命令:sqoop import –connect jdbc:mysql://localhost/数据库名 –username 用户名 –password 密码 –table 表名 –hive-import –hive-table 目标表名。
使用Sqoop工具将MySQL数据导入到Hive中,首先配置好环境变量,然后执行以下命令:sqoop import –connect jdbc:mysql://localhost/数据库名 –username 用户名 –password 密码 –table 表名 –hive-import –hive-table 目标表名。