forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
15 lines
1.1 KiB
HTML
15 lines
1.1 KiB
HTML
<a name="mrs_01_2310"></a><a name="mrs_01_2310"></a>
|
|
|
|
<h1 class="topictitle1">Why Does Hive Not Support Concurrent Data Writing to the Same Table or Partition?</h1>
|
|
<div id="body1600074149005"><div class="section" id="mrs_01_2310__s00057ad6e9d340e7ac85cc8cab57b5b8"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2310__ab205ccde787940e3a698bda21dcfb0b1">Why Does Data Inconsistency Occur When Data Is Concurrently Written to a Hive Table Through an API?</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_2310__s09d91bfe41564a339cdf23a7fdda4275"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2310__a10b57e19335249c586b6f0b2eeb69492">Hive does not support concurrent data insertion for the same table or partition. As a result, multiple tasks perform operations on the same temporary data directory, and one task moves the data of another task, causing task data exception. The service logic is modified so that data is inserted to the same table or partition in single thread mode.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1752.html">Common Issues About Hive</a></div>
|
|
</div>
|
|
</div>
|
|
|