hive icon indicating copy to clipboard operation
hive copied to clipboard

HIVE-28118: Hive Insert Into S3 with Viewfs overload scheme fails wit…

Open eshwitha opened this issue 1 year ago • 8 comments

…h MoveTask Error

What changes were proposed in this pull request?

During hive staging, isPathEncrypted of the source tmp path returns false, check for isPathEncrypted of destination tmp path leads to resolvePath which throws a FileNotFoundException leading to MoveTask error. We add a check for file existence before call to isPathEncrypted.

Why are the changes needed?

When ViewFs Overload scheme is enabled and HDFS encryption is enabled (hadoop.security.key.provider.path is not null), hive insert into fails in below cases without the fix:

  1. Encryption zone is not enabled for hive warehouse directory.
  2. Insert Into is done for the partition present in S3 (mount link created using Viewfs overload).

Does this PR introduce any user-facing change?

Is the change a dependency upgrade?

No

How was this patch tested?

Tests to verify the behaviour are added.

eshwitha avatar Mar 20 '24 02:03 eshwitha

@ayushtkn Can you please review the changes? Thanks.

eshwitha avatar Apr 02 '24 06:04 eshwitha

Screenshot 2024-04-02 at 2 33 28 PM The test -> TestEncryptedHDFSCliDriver passes in my local branch. Command used: mvn test -Dtest=TestEncryptedHDFSCliDriver -Dqfile=encryption_load_data_to_encrypted_tables.q -pl itests/qtest -Pitests

eshwitha avatar Apr 02 '24 09:04 eshwitha

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Apr 02 '24 14:04 sonarqubecloud[bot]

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Jun 11 '24 19:06 sonarqubecloud[bot]

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the [email protected] list if the patch is in need of reviews.

github-actions[bot] avatar Aug 11 '24 00:08 github-actions[bot]

Request to kindly review @ayushtkn @deniskuzZ

eshwitha avatar Aug 11 '24 15:08 eshwitha

@eshwitha, new tests fail with NullPointer https://ci.hive.apache.org/job/hive-precommit/job/PR-5137/10/

deniskuzZ avatar Sep 15 '24 09:09 deniskuzZ

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the [email protected] list if the patch is in need of reviews.

github-actions[bot] avatar Nov 15 '24 00:11 github-actions[bot]