You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@sqoop.apache.org by Scott Shaw <ss...@hortonworks.com> on 2016/04/21 16:24:38 UTC

sqoop failing with '/ 'character in the field name

I am trying to sqoop data from an oracle database and the fieldnames contain the / character. e.g. (/BEV1/LULEINH). This causes the sqoop to fail issuing the error text listed bellow: Is it possible to have sqoop deal with these different file names? The sqoop fails both when using the --columns explicitly or not.

Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: missing expression

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:951) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208) at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:886) at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1175) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1296) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3613) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3657) at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1495) at org.apache.sqoop.mapreduce.db.DBRecordReader.executeQuery(DBRecordReader.java:111) at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:235) ... 12 more


contents of --options-file

import --connect jdbc:oracle:thin:@xxxxx.xxxxxx.com<http://xxxxx.xxxxxx.com/>:####:ID --username xxxxx --password xxxxx --num-mappers 1 --table schema.table --columns "MANDT,MATNR,ERSDA,ERNAM,LAEDA,AENAM,VPSTA,PSTAT,LVORM,MTART,MBRSH,MATKL,BISMT,MEINS,BSTME,ZEINR,/BEV1/LULEINH,FERTH,FORMT”

Thanks,

Scott Shaw