By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,819 Members | 1,459 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,819 IT Pros & Developers. It's quick & easy.

使用python将hive表导入orcal数据库时导入6000条后报错

P: 1
ERROR - Python value cannot be converted to a database value
Traceback (most recent call last):
File "/usr/local/python-3.5.6/lib/python3.5/site-packages/airflow/models.py", line 1493, in _run_raw_task
result = task_copy.execute(context=context)
File "/data/app/airflow/plugins/operators/hive_to_oracle.py", line 118, in execute
cur.close()
File "/usr/local/python-3.5.6/lib/python3.5/site-packages/impala/interface.py", line 70, in __exit__
reraise(exc_type, exc_val, exc_tb)
File "/usr/local/python-3.5.6/lib/python3.5/site-packages/six.py", line 693, in reraise
raise value
File "/data/app/airflow/plugins/operators/hive_to_oracle.py", line 116, in execute
, commit_every = self.hive_batch_size/5)
File "/usr/local/python-3.5.6/lib/python3.5/site-packages/airflow/hooks/oracle_hook.py", line 131, in bulk_insert_rows
cursor.executemany(None, row_chunk)
cx_Oracle.NotSupportedError: Python value cannot be converted to a database value
4 Days Ago #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,318
i suggest you ask a clear question in english language in this forum so that some might get an idea about the issue and might be able to help you out with it.
3 Days Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.