I am getting a strange error when sqooping the data from oracle DB to HDFS. Sqoop is not able to import clob data into an avro files on hadoop.
This is the sqoop import error :
ERROR tool.ImportTool: Imported Failed: Cannot convert SQL type 2005
Do we need to add any extra arguments to sqoop import statement for it correctly import clob data into avro files ?
Update: Found the solution, We need to add --
map-column-javafor theclobcolumns.For Eg: If the column name is
clobthen we have pass --map-column-java clob=stringforsqoopto import theclobcolumns.