Created on 11-01-2017 04:52 PM - edited 09-16-2022 05:28 AM
Hi All,
anyone know how to load a hive table ( one of the columns has more than 64K bytes) into teradata using sqoop?
i'm using below syntax.
sqoop export -D sqoop.connection.factories=com.cloudera.sqoop.manager.TeradataManagerFactory --connect 'jdbc:servername/database=db_name' --username **** -P --table table1 --hcatalog-table table1 --hcatalog-database dnt_data --fields-terminated-by '\001' --m 1
error:
com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.21] [Error 1186] [SQLState HY000] Parameter 3 length is 169310 bytes, which is greater than the maximum 64000 bytes that can be set.
i'm also looking to put some filter on hive table while exporting the data without creating a new hive table. ( i dont have access to create any hive tables. i can just read them)
Appreicate your help.
Created on 04-14-2020 12:26 AM - edited 04-14-2020 12:28 AM
This is an old thread, but I will put in my findings recently.
It is a limitation/restriction from Teradata side that data with larger than 64KB are required to use special API to be streamed into Teradata. Currently Sqoop does not make use of this API, so it does not support injecting data larger than 64KB into Teradata.
Improvement JIRA has been requested, but not resolved at this stage. For the time being, have to either reduce the data or use another DB.
I have tested using MySQL's CLOB has no issues.
Cheers
Eric
Created on 04-14-2020 12:26 AM - edited 04-14-2020 12:28 AM
This is an old thread, but I will put in my findings recently.
It is a limitation/restriction from Teradata side that data with larger than 64KB are required to use special API to be streamed into Teradata. Currently Sqoop does not make use of this API, so it does not support injecting data larger than 64KB into Teradata.
Improvement JIRA has been requested, but not resolved at this stage. For the time being, have to either reduce the data or use another DB.
I have tested using MySQL's CLOB has no issues.
Cheers
Eric