sqoop支持hive的动态分区吗?我尝试使用下面提到的选项:--hive partition key和--hive=partition vlaue只用于静态分区
例如:sqoop import--connect“jdbc:mysql://快速启动。cloudera:3306/prac“--username root--password cloudera--hive import--query”选择id,name,ts from student where city='mumbai'and$conditions”--hive partition key city--hive partition value'mumbai”--hive table prac.student--target dir/user/mangesh/sqoop\u import/student\u temp5--按id拆分
1条答案
按热度按时间erhoui1w1#
您可以使用hcatalog导入—您需要sqoop1.4.4来实现这一点。
更多详情请浏览
http://sqoop.apache.org/docs/1.4.4/sqoopuserguide.html#_sqoop_hcatalog_integration