Created 11-12-2016 08:50 PM
we're using the below import command to import table's data from Oracle 9i database using "ojdbc6.jar". We get empty result although the original table contains data of the type VARCHAR2(10).
sqoop import --driver oracle.jdbc.driver.OracleDriver --connect \ "jdbc:oracle:thin:@IP_ADDRESS:PORT:SERVICE" --username "USER_NAME" \ --password "PASSWORD" --target-dir "/sqoop_import/DATA/" --query \ 'select SUBNO from SCHEMA.TABLE where $CONDITIONS' --split-by\ "TYPE_ID" --boundary-query 'select min(TYPE_ID),max(TYPE_ID) from\ SCHEMA.TABLE' --map-column-java SUBNO=String
we have tried [with no use]:
Created 12-26-2016 07:36 PM
My recommendation is to downgrade the ojdbc with older version "ojdbc14.jar", then change the ojdbc used in the path where sqoop references (see library paths in $HADOOP_CLASSPATH) and remove the newer "ori18n.jar" to avoid invokation of newer version classes which don't exist in the old ojdbcIf version. This is because you use an old version of Oracle. If this response helped, please vote and accept it as a best answer.
I did a bit more research and found that you found the solution yourself. Please post an answer and accept it yourself. You are worth the HCC points.
Created 12-26-2016 04:34 PM
could you please try the suggestions mentioned in the following post and see if it helps?
http://stackoverflow.com/questions/40567454/sqoop-imports-empty-strings-for-oracle-9i-table
Created 12-26-2016 07:36 PM
My recommendation is to downgrade the ojdbc with older version "ojdbc14.jar", then change the ojdbc used in the path where sqoop references (see library paths in $HADOOP_CLASSPATH) and remove the newer "ori18n.jar" to avoid invokation of newer version classes which don't exist in the old ojdbcIf version. This is because you use an old version of Oracle. If this response helped, please vote and accept it as a best answer.
I did a bit more research and found that you found the solution yourself. Please post an answer and accept it yourself. You are worth the HCC points.