apache / incubator-xtable

Apache XTable (incubating) is a cross-table converter for lakehouse table formats that facilitates interoperability across data processing systems and query engines.
https://xtable.apache.org/
Apache License 2.0
919 stars 147 forks source link

Throw Permission denied error when try to run demo in docker #451

Open charlesy6 opened 5 months ago

charlesy6 commented 5 months ago

Search before asking

Please describe the bug 🐞

Throw Permission denied error when try to run demo in docker.

image


image

Are you willing to submit PR?

Code of Conduct

daragu commented 5 months ago

hi @charlesy6, what environment are you using?

sagarlakshmipathy commented 5 months ago

@charlesy6 did you also run the shell script to setup the cluster? https://xtable.apache.org/docs/demo/docker#setting-up-docker-cluster

vinishjail97 commented 5 months ago

@charlesy6 Is this an issue of surfacing the right error at the top ? This may be a setting in the Jupyter notebook to increase limit of the stack trace.

Regarding the permission denied errors, can you share details regarding the environment you are using ?

daragu commented 5 months ago

Met the same exception when the use the root user start the docker-compose.

[root@djump /work/xtable/incubator-xtable]#  
[root@djump /work/xtable/incubator-xtable]#  ll
total 108K
drwxr-xr-x 3 root root 4.0K Jun 11 15:23 assets
-rw-r--r-- 1 root root 3.9K Jun 11 15:23 ci.md
drwxr-xr-x 7 root root 4.0K Jun 11 15:37 demo
-rw-r--r-- 1 root root  12K Jun 11 15:23 LICENSE
-rw-r--r-- 1 root root  837 Jun 11 15:23 lombok.config
-rw-r--r-- 1 root root  176 Jun 11 15:23 NOTICE
-rw-r--r-- 1 root root  33K Jun 11 15:23 pom.xml
-rw-r--r-- 1 root root 8.3K Jun 11 15:23 README.md
drwxr-xr-x 2 root root 4.0K Jun 11 15:23 style
drwxr-xr-x 3 root root 4.0K Jun 11 16:22 target
drwxr-xr-x 6 root root 4.0K Jun 11 15:23 website
drwxr-xr-x 4 root root 4.0K Jun 11 15:23 xtable-api
drwxr-xr-x 4 root root 4.0K Jun 11 15:23 xtable-core
drwxr-xr-x 5 root root 4.0K Jun 11 15:23 xtable-hudi-support
drwxr-xr-x 4 root root 4.0K Jun 11 15:24 xtable-utilities
[root@djump /work/xtable/incubator-xtable]#  
[root@djump /work/xtable/incubator-xtable]#  
[root@djump /work/xtable/incubator-xtable]#  docker exec jupyter ls -al /home/data
total 476
drwxr-xr-x 3 root root   4096 Jun 11 07:23 .
drwxr-xr-x 1 root root   4096 Jun 11 07:37 ..
drwxr-xr-x 4 root root   4096 Jun 11 07:23 db
-rw-r--r-- 1 root root 468583 Jun 11 07:23 DimCustomer_round2.csv
[root@djump /work/xtable/incubator-xtable]#  
[root@djump /work/xtable/incubator-xtable]#  
[root@djump /work/xtable/incubator-xtable]#  
[root@djump /work/xtable/incubator-xtable]#  docker exec -it jupyter bash
(base) jovyan@jupyter:~$ 
(base) jovyan@jupyter:~$ echo 0 > /home/data/abc
bash: /home/data/abc: Permission denied
(base) jovyan@jupyter:~$ 

And, I found the https://forums.docker.com/t/another-docker-compose-permissions-using-volumes-question/131998

daragu commented 5 months ago

cc @charlesy6, can you confirm if it is the same scene?

charlesy6 commented 5 months ago

cc @charlesy6, can you confirm if it is the same scene?

yes, i use root to run the demo.