You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "jerqi (via GitHub)" <gi...@apache.org> on 2025/01/26 07:26:57 UTC
[I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
jerqi opened a new issue, #6373:
URL: https://github.com/apache/gravitino/issues/6373
### What would you like to be improved?
Document of Hive on GCS isn't complete https://github.com/apache/gravitino/blob/main/docs/hive-catalog-with-cloud-storage.md.
Hive will still depend HDFS about temporary directory. You can start the Hive image and kill the DataNode and NameNode. You can't run the command `hive`.
### How should we improve?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614302046
Maybe you can refer to https://stackoverflow.com/questions/28204269/hive-on-google-cloud-wants-permissions-on-tmp-but-no-way-to-change-permissions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614291874
> It seems that when we execute Hive command line, the code will check the permission `rootHDFSDirPath`, however the permission model of HDFS and GCS is not the same, GCS does not use `rwx` to represent the read, write and execute, so I'm afraid that we can only use GCS in the create table syntax NOT in the configuration file. below the detail stack trace
>
> ```
> Exception in thread "main" java.lang.RuntimeException: The dir: gs://xiaoyu123/tmp on HDFS should be writable. Current permissions are: rwx------
> at org.apache.hadoop.hive.ql.exec.Utilities.ensurePathIsWritable(Utilities.java:4501)
> at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:760)
> at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:701)
> at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:627)
> at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:591)
> at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:747)
> at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
> ```
>
> The code:
>
> 
But you can see that the creator has the rwx privileges.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614307225
> Maybe you can refer to [stackoverflow.com/questions/28204269/hive-on-google-cloud-wants-permissions-on-tmp-but-no-way-to-change-permissions](https://stackoverflow.com/questions/28204269/hive-on-google-cloud-wants-permissions-on-tmp-but-no-way-to-change-permissions)
It's a workaround and requires the use `bdutil-0.36.4` to run Hive command line. I believe the issue lies with the command line tool itself, we can still use JDBC, Spark or related-API to access Hive.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614289409
It seems that when we execute Hive command line, the code will check the permission `rootHDFSDirPath`, however the permission model of HDFS and GCS is not the same, GCS does not use `rwx` to represent the read, write and execute, so I'm afraid that we can only use GCS in the create table syntax NOT in the configuration file. below the detail stack trace
```
Exception in thread "main" java.lang.RuntimeException: The dir: gs://xiaoyu123/tmp on HDFS should be writable. Current permissions are: rwx------
at org.apache.hadoop.hive.ql.exec.Utilities.ensurePathIsWritable(Utilities.java:4501)
at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:760)
at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:701)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:627)
at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:591)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:747)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
```
The code:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi closed issue #6373: [Improvement] Document of Hive on GCS isn't complete
URL: https://github.com/apache/gravitino/issues/6373
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614253489
cc @yuqi1129
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614274129
> [@jerqi](https://github.com/jerqi) Have you set the configuration `hive.metastore.warehouse.dir` to the GCS path, I'm afraid this will affect the usage of `GCS` as the Hive storage path.
I have set.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614253827
> cc [<img alt="" width="16" height="16" src="https://avatars.githubusercontent.com/u/15794564?s=64&u=0045ee306d34759b726347d36a743e8c7c81f097&v=4">@yuqi1129](https://github.com/yuqi1129?rgh-link-date=2025-01-26T07%3A27%3A03.000Z)
I see.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614389361

Spark is fine. I haven't tested it for JDBC.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614260306
@jerqi
Have you set the configuration `hive.metastore.warehouse.dir` to the GCS path, I'm afraid this will affect the usage of `GCS` as the Hive storage path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614318124
> > Maybe you can refer to [stackoverflow.com/questions/28204269/hive-on-google-cloud-wants-permissions-on-tmp-but-no-way-to-change-permissions](https://stackoverflow.com/questions/28204269/hive-on-google-cloud-wants-permissions-on-tmp-but-no-way-to-change-permissions)
>
> It's a workaround and requires the use `bdutil-0.36.4` to run Hive command line. I believe the issue lies with the command line tool itself, we can still use JDBC, Spark or related-API to access Hive.
Is it ok to use JDBC or Spark?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2614299261
For GCS, how do you defind the execute permission, I have tested for a GCS path with read/write permission
<img width="1031" alt="Image" src="https://github.com/user-attachments/assets/fb73420c-1403-48f1-8aae-2ab07b51c6ae" />
the permission for a GCS path is `rwx------`, which is different from HDFS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Document of Hive on GCS isn't complete [gravitino]
Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on issue #6373:
URL: https://github.com/apache/gravitino/issues/6373#issuecomment-2655644442
Ok, we can close this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org