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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tengfei
    New Member
    • Sep 2019
    • 1

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

    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.execu te(context=cont ext)
    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_typ e, 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_row s
    cursor.executem any(None, row_chunk)
    cx_Oracle.NotSu pportedError: Python value cannot be converted to a database value
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    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.

    Comment

    Working...