【发布时间】:2016-05-10 14:20:41
【问题描述】:
我试图将数据从 db2 导入到 hdfs,关于这个特定的数据库出现以下错误。我是 DB2 新手,这个错误似乎与 db2 数据库和驱动程序有关。
sqoop 导入 --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
错误:
An attempt was made to access a database, DB_NAME, which was either not found or does not support transactions. ERRORCODE=-4499, SQLSTATE=08004
需要在 DB2 上启用 Do 事务才能使 sqoop 工作。有什么指点吗?
【问题讨论】: