环境: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/