请帮助我解决以下错误。在 oracle 中检查时工作正常,但在尝试通过 SQOOP 导入时失败。
版本:Hadoop 0.20.2-cdh3u4 和 Sqoop 1.3.0-cdh3u5
sqoop import $SQOOP_CONNECTION_STRING
--query 'SELECT st.reference,u.unit,st.reading,st.code,st.read_id,st.avg FROM reading st,tunit `tu,unit u
WHERE st.reference=tu.reference and st.number IN ('218730','123456') and tu.unit_id = u.unit_id
and u.enrolled='Y' AND st.reading <= latest_off and st.reading >= To_Date('20120701','yyyymmdd')
and st.type_id is null and $CONDITIONS'
--split-by u.unit
--target-dir /sample/input
错误:
12/10/10 09:33:21 ERROR manager.SqlManager: Error execution statement: java.sql.SQLSyntaxErrorException: ORA-00904: "YYYYMMDD": invalid identifier
其次是....
2010 年 12 月 10 日 09:33:21 错误 sqoop.Sqoop:运行 Sqoop 时出现异常:java.lang.NullPointerException
感谢和问候,
泰米尔语