Member since
04-20-2017
5
Posts
2
Kudos Received
0
Solutions
04-26-2017
02:01 AM
My bad, that was the only thing i didn't try lol. BTW, this is the solution. Thanks
... View more
04-20-2017
07:30 PM
@saranvisa Already tried using the --query. cast the column as timestamp but still converted TIMESTAMP to BIGINT in the HIVE table. Here's my query: sqoop import \ --connect "jdbc:oracle:thin:@192.168.1.17:1521:XE" \ --username "xxxxx" \ --password-file /user/cloudera/credentials/ora.password \ --as-parquetfile \ --hive-import \ --hive-overwrite \ --target-dir /user/cloudera/oracle \ --compression-codec snappy \ --query "select EMPLOYEE_ID, START_DATE, END_DATE, JOB_ID, DEPARTMENT_ID, cast(TSTAMP as TIMESTAMP) from SQOOPDB.JOB_HISTORY where \$CONDITIONS" \ --hive-table job_history9 \ --hive-database oracle \ -m 1
... View more