You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "peacewong (via GitHub)" <gi...@apache.org> on 2023/04/04 07:47:45 UTC

[GitHub] [linkis] peacewong commented on a diff in pull request #4424: feat : linkis-storage support OSS filesystem support write/read launch log and resultSet in OSS(#4185)

peacewong commented on code in PR #4424:
URL: https://github.com/apache/linkis/pull/4424#discussion_r1156861408


##########
linkis-commons/linkis-common/src/main/java/org/apache/linkis/common/io/FsPath.java:
##########
@@ -273,6 +271,10 @@ public String getSchemaPath() {
     if (WINDOWS && !"hdfs".equals(getFsType())) {
       return getFsType() + "://" + uri.getAuthority() + uri.getPath();
     }
+
+    if (uri.getPath().startsWith("/")) {
+      return getFsType() + "://" + uri.getPath().substring(1);

Review Comment:
   > Thanks for your advice.I have fixed it, and have tested read/write operation on hdfs filesystem and OSS filesystem. Please have a further view thanks.
   
   Thank you!



-- 
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: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org