标签: mapreduce sqoop hadoop2
根据" Apache Sqoop Cookbook",通过使用查询导入,Sqoop无法使用数据库目录来获取元数据。
那么Sqoop如何获取查询选项中提到的表格(城市和范围)的元数据?例如:
--query "SELECT cities.city AS first_city normcities.city AS second_city FROM cities LEFT JOIN normcities USING(id)"