sqoop import \ --connect jdbc:mysql://rm-2ze9b9kyvxr5yq058.mysql.rds.aliyuncs.com:3306/new_basketball_association \ --username 替换你的mysql账户\ --password "替换你的mysql账户\密码" \ --table 替换你的表名 \ --target-dir 替换你的hdfs目录 \ --delete-target-dir \ --fields-terminated-by "," \ --as-orcfile \ --hive-import \ --create-hive-table \ --hive-table 替换你的hive表名 \ --hs2-url "替换你的hive地址/替换你的hive库名称;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2" \ --hs2-user 替换你的hive权限用户名称
mysql sqoop import hive
最新推荐文章于 2024-08-04 15:33:44 发布