环境:CentOS 6.3, hive-0.9.0-cdh4.1.2, Oracle database 11g
执行语句:sqoop import --connect jdbc:oracle:thin:@m1-ite-erp-bidev01.m1:8521:biprod --username ahmt --password haddmt --table FCT_PROX_HMT --hive-import -m 1
导数的时候出错: ERROR tool.ImportTool: Imported Failed: Attempted to generate class with no columns!
经排查,问题出在 --username ahmt 这个选项, 需要把用户名大写, --username AHMT, 同时注意表名也要大写
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16582684/viewspace-753702/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16582684/viewspace-753702/
本文介绍了一次使用Sqoop从Oracle导入数据到Hive过程中遇到的问题及解决方案。主要错误为尝试生成无列的类,通过将用户名和表名改为大写解决了该问题。
2万+

被折叠的 条评论
为什么被折叠?



