sqoop无法用点导入表 [英] sqoop unable to import table with dot
本文介绍了sqoop无法用点导入表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试导入一个名为dot的表,并且sqoop向我发送schema不存在
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-数据库exxxxxxx --hive-import --warehouse-dir'/ user / xxxxx / xxx_import / xxxx'--create-hive-table --table product.product
这个工作在import-all-tables但是它很慢并且总是失败的时候是这样工作的
解决方案 div>
有效的Hive表名由字母数字和下划线组成。在您的示例 product.product
中表示数据库产品
product >。
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
解决方案
Valid Hive table name consists of alphanumeric and underscore. In your example product.product
means table product
in database product
.
这篇关于sqoop无法用点导入表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文