[英]Sqoop import from IBM db2 to Hive
I was trying to import data from db2 to hdfs, got below error with respect to this specific database. 我试图将数据从db2导入到hdfs,相对于此特定数据库,出现以下错误。 I am new to DB2, this error seems to be more related to db2 database and driver.
我是DB2的新手,此错误似乎与db2数据库和驱动程序有关。
sqoop import --connect jdbc:db2://db2_host101:60006/DB_NAME --username hduser --table repo.table_abc --hive-import --hive-overwrite --hive-table repo.table_abc --target-dir /target_dir/table_abc -m 1 -P
sqoop import --connect jdbc:db2:// db2_host101:60006 / DB_NAME-用户名hduser --table repo.table_abc --hive-import --hive-overwrite --hive-table repo.table_abc --target-dir / target_dir / table_abc -m 1 -P
Error: 错误:
An attempt was made to access a database, DB_NAME, which was either not found or does not support transactions. ERRORCODE=-4499, SQLSTATE=08004
Do transactions needs to be enabled on DB2 for sqoop to work. 是否需要在DB2上启用事务才能使sqoop正常工作。 Any pointers?
有指针吗?
I was able to solve this by reaching out to our db2 DBA. 我可以通过联系我们的db2 DBA来解决此问题。 I was using the wrong "DB_NAME", so the first part in the error statement was correct, It was unable to find the database.
我使用了错误的“ DB_NAME”,因此错误声明的第一部分是正确的,它无法找到数据库。 Though, second part of the error confused me initially.
但是,错误的第二部分最初使我感到困惑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.