# hadoop impala - problem with db insert

**URL:** <https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219>\
**Category:** KNIME Extensions\
**Tags:** big-data-extension, big-data\
**Created:** [November 3, 2019, 9:33pm UTC](https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219 "2019-11-03T21:33:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandGrund](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@RolandGrund](https://forum.knime.com/u/RolandGrund)\
**Post date:** [November 3, 2019, 9:33pm UTC](https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219/1 "2019-11-03T21:33:07Z")

</div>

Hi all,

tried to use the “DB Insert” node based on an impala connection to insert (append) data into a table.  
Got the error message: “Execute failed: INSERT is not supported by Impala”.  
However, it is possible to use insert via hadoop SQL commands (e.g. in Squirrel) - we are  
using Cloudera 6.2. It seems that this error message is created by KNIME not by hadoop.

Is there any solution/workaround for this ?

Best regards  
Roland Grund

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 3, 2019, 11:07pm UTC](https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219/2 "2019-11-03T23:07:25Z")

</div>

You will have to first load the data into a (temporary) table with the Big Data environment and then insert it into an existing Impala or Hive table via the SQL Executor node.

I have created a few workflows that demonstrate different concepts of the usage of Big Data nodes. They might serve as an inspiration.

[https://hub.knime.com/mlauber71/spaces/Public/latest/kn\_example\_bigdata\_hive\_csv\_loader/m\_001\_import\_hive\_csv](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_bigdata_hive_csv_loader/m_001_import_hive_csv)

The first part loads a new Hive table  
[https://hub.knime.com/mlauber71/spaces/Public/latest/kn\_example\_h2o\_sparkling\_water](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_h2o_sparkling_water)

---

<div class="post-metadata">

**Author:** ![RolandGrund](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@RolandGrund](https://forum.knime.com/u/RolandGrund)\
**Post date:** [November 4, 2019, 8:49am UTC](https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219/3 "2019-11-04T08:49:00Z")

</div>

thanks - very helpful !

---

<div class="post-metadata">

**Author:** ![tobias.koetter](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tobias.koetter/32/56844_2.png) [@tobias.koetter](https://forum.knime.com/u/tobias.koetter)\
**Post date:** [November 4, 2019, 8:46pm UTC](https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219/4 "2019-11-04T20:46:23Z")

</div>

Hi Roland,  
the reason why we have disabled the insertion of records via the SQL INSERT command is that each command would result in a separate file in the HDFS file system containing only a single record. That is nothing you want to use for inserting large amounts of data. Please use the DB Loader node or the Impala Loader (legacy) node to upload data to Impala as mlauber71 already pointed out. If you use the DB Loader of the new DB framework you do not need to upload the data into a temporary table to insert it into an existing table. If a table already exists the new DB Loader automatically creates a temporary table which is used to transfer the data into the destination table. The old Impala Loader did this only for partitioned tables.  
Bye  
Tobias

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 2, 2023, 9:00pm UTC](https://forum.knime.com/t/hadoop-impala-problem-with-db-insert/19219/5 "2023-06-02T21:00:24Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
