Member since
04-13-2016
2
Posts
7
Kudos Received
0
Solutions
11-12-2016
08:50 PM
2 Kudos
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]:
hive import with and without --map-column-hive --columns instead of specifying the query using different ojdbc version
... View more
Labels:
- Labels:
-
Apache Sqoop
04-13-2016
11:15 AM
5 Kudos
Hi, if you are still facing this issue and you already tried to regenerate the key and it didn't work try to make sure of the clock in your sandbox is set correctly to do so run the following : 1. yum install -y ntp 2. service ntpd stop 3. ntpdate pool.ntp.org 4. service ntpd start
... View more