sqoop unable to import table with dot

匿名 (未验证) 提交于 2019-12-03 10:24:21

问题:

I try to import a table with dot in it's name and sqoop send me schema doesn't exist

sqoop-import --connect jdbc:postgresql://db.xxxxxxxx:5432/production --driver org.postgresql.Driver --username xxxx --password xxxx --connection-manager org.apache.sqoop.manager.GenericJdbcManager --hive-database exxxxxxx --hive-import --warehouse-dir '/user/xxxxx/xxx_import/xxxx' --create-hive-table --table product.product

this work when import-all-tables but it's really slow and it always fail

回答1:

Valid Hive table name consists of alphanumeric and underscore. In your example product.product means table product in database product.



回答2:

odoo use underscore delimiter not dot



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!