Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read manifest file Permission denied #10634

Closed
lurnagao-dahua opened this issue Jul 5, 2024 · 12 comments
Closed

Read manifest file Permission denied #10634

lurnagao-dahua opened this issue Jul 5, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@lurnagao-dahua
Copy link
Contributor

lurnagao-dahua commented Jul 5, 2024

Apache Iceberg version

1.4.3

Query engine

Hive3.1.3

Please describe the bug 馃悶

A user execution query select * from iceberg_tb

and the error log is :
Caused by: org.apache.iceberg.exceptions.RuntimeIOException: Failed to open input stream for file: hdfs://hdfsHACluster/user/hive/warehouse/yc_iceberg.db/iceberg_tb/metadata/a72f8bf5-5d93-405b-953e-a8fed8bfa6b6-m0.avro at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:507) ... Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=B, access=EXECUTE, inode="/user/hive/warehouse":hadoop:supergroup:drwx------

Strangely, the error message is that user B does not have permission.

Is it possible that it is related to ThreadPools.WORKER_POOL?

@lurnagao-dahua lurnagao-dahua added the bug Something isn't working label Jul 5, 2024
@lurnagao-dahua
Copy link
Contributor Author

lurnagao-dahua commented Jul 5, 2024

Hi,can you take a look at this issue for me! @nastra
Thank you very much

@wangyinsheng
Copy link
Contributor

Could you provide more infomation? hive version and how do you config it to enable iceberg support

@lurnagao-dahua
Copy link
Contributor Author

lurnagao-dahua commented Jul 5, 2024

Could you provide more infomation? hive version and how do you config it to enable iceberg support

The hive version is 3.1.3
I put iceberg-hive-runtime-1.4.3.jar into $HIVE_HOME/lib
and it is a very occasional problem and when i restart hiveserver2 it will be normal
This is a simple grab, so the task will not run.

@wangyinsheng
Copy link
Contributor

How do you set accessing user , and have you ever switch user?

@lurnagao-dahua
Copy link
Contributor Author

How do you set accessing user , and have you ever switch user?

jdbc use keytab, and i always use the same user

if i create new table, it will show correct owner on table properties.

@lurnagao-dahua
Copy link
Contributor Author

lurnagao-dahua commented Jul 5, 2024

How do you set accessing user , and have you ever switch user?

when i restart hiveserver2, it will be normal, does it feel like a caching issue?

@wangyinsheng
Copy link
Contributor

@wangyinsheng
Copy link
Contributor

you can try to disable cache, set iceberg.catalog.default_iceberg.client.pool.cache.eviction-interval-ms=0

@lurnagao-dahua
Copy link
Contributor Author

This may be a issue of client pool in hive catalog. https://github.com/apache/iceberg/blob/24d26b6a35a1287531e72357691d9dbd3d7f79bd/hive-metastore/src/main/java/org/apache/iceberg/hive/CachedClientPool.java#L71C45-L71C60

Hi, may I ask if reading the manifest file will use CachedClientPool?

@lurnagao-dahua
Copy link
Contributor Author

you can try to disable cache, set iceberg.catalog.default_iceberg.client.pool.cache.eviction-interval-ms=0

May I ask if this configuration is available in hive-site.xml?

@wangyinsheng
Copy link
Contributor

sorry, I confuse the problem. CachedClientPool is used for connection to hms, not hdfs file.

@lurnagao-dahua
Copy link
Contributor Author

sorry, I confuse the problem. CachedClientPool is used for connection to hms, not hdfs file.

Hi, I find the ugi with a72f8bf5-5d93-405b-953e-a8fed8bfa6b6-m0.avro is B and other file is A

@lurnagao-dahua lurnagao-dahua changed the title Hive Permission denied Read manifest file Permission denied Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants