You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched in the issues and found no similar issues.
Describe the feature
The METRICS_JSON_LOCATION and SERVER_OPERATION_LOG_DIR_ROOT paths are relative to user.dir by default.
I got an error during startup and I want to change it to a path relative to KYUUBI_WORK_DIR_ROOT.
command:
cd /
sudo -u user ${KYUUBI_HOME}/bin/kyuubi start
error:
Exception in thread "main" java.nio.file.AccessDeniedException: /metrics
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at org.apache.kyuubi.metrics.JsonReporterService.initialize(JsonReporterService.scala:47)
at org.apache.kyuubi.service.CompositeService.$anonfun$initialize$1(CompositeService.scala:40)
at org.apache.kyuubi.service.CompositeService.$anonfun$initialize$1$adapted(CompositeService.scala:40)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at org.apache.kyuubi.service.CompositeService.initialize(CompositeService.scala:40)
at org.apache.kyuubi.metrics.MetricsSystem.initialize(MetricsSystem.scala:66)
at org.apache.kyuubi.service.CompositeService.$anonfun$initialize$1(CompositeService.scala:40)
at org.apache.kyuubi.service.CompositeService.$anonfun$initialize$1$adapted(CompositeService.scala:40)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at org.apache.kyuubi.service.CompositeService.initialize(CompositeService.scala:40)
at org.apache.kyuubi.service.Serverable.initialize(Serverable.scala:46)
at org.apache.kyuubi.server.KyuubiServer.initialize(KyuubiServer.scala:154)
at org.apache.kyuubi.server.KyuubiServer$.startServer(KyuubiServer.scala:92)
at org.apache.kyuubi.server.KyuubiServer$.main(KyuubiServer.scala:121)
at org.apache.kyuubi.server.KyuubiServer.main(KyuubiServer.scala)
Motivation
No response
Describe the solution
No response
Additional context
No response
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
<!--
Thanks for sending a pull request!
Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html
2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
-->
### _Why are the changes needed?_
<!--
Please clarify why the changes are needed. For instance,
1. If you add a feature, you can talk about the use case of it.
2. If you fix a bug, you can clarify why it is a bug.
-->
Make KYUUBI_WORK_DIR_ROOT as the default root path. For details: #1509.
### _How was this patch tested?_
- [X] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [X] Add screenshots for manual tests if appropriate
- [X] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request
Closes#1519 from wForget/KYUUBI-1509.
Closes#1509ff078e5 [Wang Zhen] [KYUUBI-1509] Make KYUUBI_WORK_DIR_ROOT as the default root path.
Authored-by: Wang Zhen <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
(cherry picked from commit 986d983)
Signed-off-by: Kent Yao <[email protected]>
Code of Conduct
Search before asking
Describe the feature
The
METRICS_JSON_LOCATION
andSERVER_OPERATION_LOG_DIR_ROOT
paths are relative touser.dir
by default.I got an error during startup and I want to change it to a path relative to
KYUUBI_WORK_DIR_ROOT
.command:
error:
Motivation
No response
Describe the solution
No response
Additional context
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: