You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "jojochuang (via GitHub)" <gi...@apache.org> on 2025/07/11 00:41:06 UTC
[PR] HDDS-13421. [Docs] Ofs migration guide [ozone]
jojochuang opened a new pull request, #8784:
URL: https://github.com/apache/ozone/pull/8784
## What changes were proposed in this pull request?
HDDS-13421. [Docs] Ofs migration guide
Please describe your PR in detail:
* Assisted by Gemini and ChatGPT, I reviewed every single OFS, FileSystem API, DistributedFileSystem API, and cross referenced every single NameNode audit logs to produce this migration guide.
* Generated-by: Google Gemini 2.5 Pro + Gemini Cli, ChatGPT 4o.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13421
## How was this patch tested?
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13421. [Docs] Ofs migration guide [ozone]
Posted by "ayushtkn (via GitHub)" <gi...@apache.org>.
ayushtkn commented on code in PR #8784:
URL: https://github.com/apache/ozone/pull/8784#discussion_r2199250011
##########
hadoop-hdds/docs/content/interface/Ofs.md:
##########
@@ -273,121 +273,161 @@ This feature wouldn't degrade server performance as the loop is on the client.
Think it as a client is issuing multiple requests to the server to get all the
information.
-## Operation Support
-
-lists the support status of Ofs operations
-
-### Supported
-
-| Operation | Description | Support |
-|------------------------|-------------------------------------------|----------------|
-| `create` | Creates a new file. | Supported |
-| `open` | Opens a file for reading. | Supported |
-| `rename` | Renames a file or directory. | Supported [1] |
-| `delete` | Deletes a file or directory. | Supported [2] |
-| `listStatus` | Lists the status of files in a directory. | Supported [3] |
-| `mkdirs` | Creates a directory and its parents. | Supported |
-| `getFileStatus` | Gets the status of a file. | Supported |
-| `setTimes` | Sets the modification and access times. | Supported |
-| `getLinkTarget` | Gets the target of a symbolic link. | Supported [4] |
-| `getFileChecksum` | Gets the checksum of a file. | Supported |
-| `setSafeMode` | Enters or leaves safe mode. | Supported |
-| `recoverLease` | Recovers a file lease. | Supported |
-| `isFileClosed` | Checks if a file is closed. | Supported |
-| `createSnapshot` | Creates a snapshot. | Supported [5] |
-| `deleteSnapshot` | Deletes a snapshot. | Supported [5] |
-| `renameSnapshot` | Renames a snapshot. | Supported [5] |
-| `getSnapshotDiffReport`| Gets a snapshot diff report. | Supported [5] |
-| `copyFromLocalFile` | Copies a file from the local filesystem. | Supported |
-| `exists` | Checks if a path exists. | Supported |
-| `getContentSummary` | Gets the content summary of a path. | Supported |
-| `getDefaultBlockSize` | Gets the default block size. | Supported |
-| `getDefaultReplication`| Gets the default replication factor. | Supported |
-| `getDelegationToken` | Gets a delegation token. | Supported |
-| `getFileBlockLocations`| Gets file block locations. | Supported |
-| `getHomeDirectory` | Gets the user's home directory. | Supported |
-| `getServerDefaults` | Gets the server default values. | Supported |
-| `getTrashRoot` | Gets the trash root for a path. | Supported |
-| `getTrashRoots` | Gets all trash roots. | Supported |
-| `getWorkingDirectory` | Gets the current working directory. | Supported |
-| `globStatus` | Finds files matching a pattern. | Supported |
-| `hasPathCapability` | Queries for a path capability. | Supported |
-| `isDirectory` | Checks if a path is a directory. | Supported |
-| `isFile` | Checks if a path is a file. | Supported |
-| `listFiles` | Returns a remote iterator for files. | Supported |
-| `listLocatedStatus` | Returns a remote iterator for located file statuses. | Supported |
-| `listStatusIterator` | Returns a remote iterator for file statuses. | Supported |
-| `setWorkingDirectory` | Sets the current working directory. | Supported |
-| `supportsSymlinks` | Checks if symbolic links are supported. | Supported |
-
-### Unsupported
-
-| Operation | Description |
-|------------------------|-------------------------------------------|
-| `append` | Appends to an existing file. |
-| `setPermission` | Sets the permission of a file. |
-| `setOwner` | Sets the owner of a file. |
-| `setReplication` | Sets the replication factor of a file. |
-| `createSymlink` | Creates a symbolic link. |
-| `resolveLink` | Resolves a symbolic link. |
-| `setXAttr` | Sets an extended attribute. |
-| `getXAttr` | Gets an extended attribute. |
-| `listXAttrs` | Lists extended attributes. |
-| `removeXAttr` | Removes an extended attribute. |
-| `setAcl` | Sets an ACL. |
-| `getAclStatus` | Gets an ACL status. |
-| `modifyAclEntries` | Modifies ACL entries. |
-| `removeAclEntries` | Removes ACL entries. |
-| `removeDefaultAcl` | Removes the default ACL. |
-| `removeAcl` | Removes an ACL. |
-| `truncate` | Truncates a file. |
-| `concat` | Concatenates files. |
+## Migrating from HDFS
+
+This guide helps you migrate applications from HDFS to Ozone by detailing the API-level compatibility of the Ozone File System (Ofs).
+
+To ensure a smooth transition, you should first verify that your existing applications will work with Ofs. You can check for potential incompatibilities by identifying the HDFS APIs your applications use.
+
+* **For Cluster Administrators**: Analyze the NameNode audit logs on your source HDFS cluster to identify the operations performed by your applications.
+* **For Application Developers**: Review your application's source code to identify which `FileSystem` or `DistributedFileSystem` APIs are being called.
+
+Once you have a list of APIs, compare it against the tables below to identify any unsupported operations.
+
+### Supported FileSystem APIs
+
+The following standard `FileSystem` APIs are supported by Ofs.
+
+| Operation | NameNode audit log | Description | Support |
+|-------------------------|---------------------------|-----------------------------------------------------|---------------|
+| `access` | `checkAccess` | Checks if the user can access a path. | Supported |
+| `create` | `create` | Creates a new file. | Supported |
+| `open` | `open` | Opens a file for reading. | Supported |
+| `rename` | `rename` | Renames a file or directory. | Supported [1] |
+| `delete` | `delete` | Deletes a file or directory. | Supported [2] |
+| `listStatus` | `listStatus` | Lists the status of files in a directory. | Supported [3] |
+| `mkdirs` | `mkdirs` | Creates a directory and its parents. | Supported |
+| `getFileStatus` | `getfileinfo` | Gets the status of a file. | Supported |
+| `setTimes` | `setTimes` | Sets the modification and access times. | Supported |
+| `getLinkTarget` | `getfileinfo` | Gets the target of a symbolic link. | Supported [4] |
+| `getFileChecksum` | `open` | Gets the checksum of a file. | Supported |
+| `setSafeMode` | `safemode_leave`, `safemode_enter`, `safemode_get`, `safemode_force_exit` | Enters or leaves safe mode. | Supported |
+| `recoverLease` | `recoverLease` | Recovers a file lease. | Supported |
+| `isFileClosed` | `isFileClosed` | Checks if a file is closed. | Supported |
+| `createSnapshot` | `createSnapshot` | Creates a snapshot. | Supported [5] |
+| `deleteSnapshot` | `deleteSnapshot` | Deletes a snapshot. | Supported [5] |
+| `renameSnapshot` | `renameSnapshot` | Renames a snapshot. | Supported [5] |
+| `getSnapshotDiffReport` | `computeSnapshotDiff` | Gets a snapshot diff report. | Supported [5] |
+| `getContentSummary` | `contentSummary` | Gets the content summary of a path. | Supported |
+| `getDelegationToken` | `getDelegationToken` | Gets a delegation token. | Supported |
+| `globStatus` | `listStatus` | Finds files matching a pattern. | Supported |
+| `copyFromLocalFile` | `getfileinfo` | Copies a file from the local filesystem. | Supported |
+| `exists` | `getfileinfo` | Checks if a path exists. | Supported |
+| `getFileBlockLocations` | `open` | Gets file block locations. | Supported |
+| `getTrashRoot` | `listSnapshottableDirectory`, `getEZForPath` | Gets the trash root for a path. | Supported |
+| `getTrashRoots` | `listStatus`, `listEncryptionZones` | Gets all trash roots. | Supported |
+| `isDirectory` | `getfileinfo` | Checks if a path is a directory. | Supported |
+| `isFile` | `getfileinfo` | Checks if a path is a file. | Supported |
+| `listFiles` | `listStatus` | Returns a remote iterator for files. | Supported |
+| `listLocatedStatus` | `listStatus` | Returns a remote iterator for located file statuses.| Supported |
+| `listStatusIterator` | `listStatus` | Returns a remote iterator for file statuses. | Supported |
+| `getDefaultBlockSize` | N/A | Gets the default block size. | Supported |
+| `getDefaultReplication` | N/A | Gets the default replication factor. | Supported |
+| `getHomeDirectory` | N/A | Gets the user's home directory. | Supported |
+| `getServerDefaults` | N/A | Gets the server default values. | Supported |
+| `getWorkingDirectory` | N/A | Gets the current working directory. | Supported |
+| `hasPathCapability` | N/A | Queries for a path capability. | Supported |
+| `setWorkingDirectory` | N/A | Sets the current working directory. | Supported |
+| `supportsSymlinks` | N/A | Checks if symbolic links are supported. | Supported |
+
+*Note: An audit log of N/A means the API is client-side only and does not access the NameNode.*
Review Comment:
`getServerDefaults` is marked `N/A` & it does reaches the Namenode
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13421. [Docs] Ofs migration guide [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on code in PR #8784:
URL: https://github.com/apache/ozone/pull/8784#discussion_r2199265608
##########
hadoop-hdds/docs/content/interface/Ofs.md:
##########
@@ -273,121 +273,161 @@ This feature wouldn't degrade server performance as the loop is on the client.
Think it as a client is issuing multiple requests to the server to get all the
information.
-## Operation Support
-
-lists the support status of Ofs operations
-
-### Supported
-
-| Operation | Description | Support |
-|------------------------|-------------------------------------------|----------------|
-| `create` | Creates a new file. | Supported |
-| `open` | Opens a file for reading. | Supported |
-| `rename` | Renames a file or directory. | Supported [1] |
-| `delete` | Deletes a file or directory. | Supported [2] |
-| `listStatus` | Lists the status of files in a directory. | Supported [3] |
-| `mkdirs` | Creates a directory and its parents. | Supported |
-| `getFileStatus` | Gets the status of a file. | Supported |
-| `setTimes` | Sets the modification and access times. | Supported |
-| `getLinkTarget` | Gets the target of a symbolic link. | Supported [4] |
-| `getFileChecksum` | Gets the checksum of a file. | Supported |
-| `setSafeMode` | Enters or leaves safe mode. | Supported |
-| `recoverLease` | Recovers a file lease. | Supported |
-| `isFileClosed` | Checks if a file is closed. | Supported |
-| `createSnapshot` | Creates a snapshot. | Supported [5] |
-| `deleteSnapshot` | Deletes a snapshot. | Supported [5] |
-| `renameSnapshot` | Renames a snapshot. | Supported [5] |
-| `getSnapshotDiffReport`| Gets a snapshot diff report. | Supported [5] |
-| `copyFromLocalFile` | Copies a file from the local filesystem. | Supported |
-| `exists` | Checks if a path exists. | Supported |
-| `getContentSummary` | Gets the content summary of a path. | Supported |
-| `getDefaultBlockSize` | Gets the default block size. | Supported |
-| `getDefaultReplication`| Gets the default replication factor. | Supported |
-| `getDelegationToken` | Gets a delegation token. | Supported |
-| `getFileBlockLocations`| Gets file block locations. | Supported |
-| `getHomeDirectory` | Gets the user's home directory. | Supported |
-| `getServerDefaults` | Gets the server default values. | Supported |
-| `getTrashRoot` | Gets the trash root for a path. | Supported |
-| `getTrashRoots` | Gets all trash roots. | Supported |
-| `getWorkingDirectory` | Gets the current working directory. | Supported |
-| `globStatus` | Finds files matching a pattern. | Supported |
-| `hasPathCapability` | Queries for a path capability. | Supported |
-| `isDirectory` | Checks if a path is a directory. | Supported |
-| `isFile` | Checks if a path is a file. | Supported |
-| `listFiles` | Returns a remote iterator for files. | Supported |
-| `listLocatedStatus` | Returns a remote iterator for located file statuses. | Supported |
-| `listStatusIterator` | Returns a remote iterator for file statuses. | Supported |
-| `setWorkingDirectory` | Sets the current working directory. | Supported |
-| `supportsSymlinks` | Checks if symbolic links are supported. | Supported |
-
-### Unsupported
-
-| Operation | Description |
-|------------------------|-------------------------------------------|
-| `append` | Appends to an existing file. |
-| `setPermission` | Sets the permission of a file. |
-| `setOwner` | Sets the owner of a file. |
-| `setReplication` | Sets the replication factor of a file. |
-| `createSymlink` | Creates a symbolic link. |
-| `resolveLink` | Resolves a symbolic link. |
-| `setXAttr` | Sets an extended attribute. |
-| `getXAttr` | Gets an extended attribute. |
-| `listXAttrs` | Lists extended attributes. |
-| `removeXAttr` | Removes an extended attribute. |
-| `setAcl` | Sets an ACL. |
-| `getAclStatus` | Gets an ACL status. |
-| `modifyAclEntries` | Modifies ACL entries. |
-| `removeAclEntries` | Removes ACL entries. |
-| `removeDefaultAcl` | Removes the default ACL. |
-| `removeAcl` | Removes an ACL. |
-| `truncate` | Truncates a file. |
-| `concat` | Concatenates files. |
+## Migrating from HDFS
+
+This guide helps you migrate applications from HDFS to Ozone by detailing the API-level compatibility of the Ozone File System (Ofs).
+
+To ensure a smooth transition, you should first verify that your existing applications will work with Ofs. You can check for potential incompatibilities by identifying the HDFS APIs your applications use.
+
+* **For Cluster Administrators**: Analyze the NameNode audit logs on your source HDFS cluster to identify the operations performed by your applications.
+* **For Application Developers**: Review your application's source code to identify which `FileSystem` or `DistributedFileSystem` APIs are being called.
+
+Once you have a list of APIs, compare it against the tables below to identify any unsupported operations.
+
+### Supported FileSystem APIs
+
+The following standard `FileSystem` APIs are supported by Ofs.
+
+| Operation | NameNode audit log | Description | Support |
+|-------------------------|---------------------------|-----------------------------------------------------|---------------|
+| `access` | `checkAccess` | Checks if the user can access a path. | Supported |
+| `create` | `create` | Creates a new file. | Supported |
+| `open` | `open` | Opens a file for reading. | Supported |
+| `rename` | `rename` | Renames a file or directory. | Supported [1] |
+| `delete` | `delete` | Deletes a file or directory. | Supported [2] |
+| `listStatus` | `listStatus` | Lists the status of files in a directory. | Supported [3] |
+| `mkdirs` | `mkdirs` | Creates a directory and its parents. | Supported |
+| `getFileStatus` | `getfileinfo` | Gets the status of a file. | Supported |
+| `setTimes` | `setTimes` | Sets the modification and access times. | Supported |
+| `getLinkTarget` | `getfileinfo` | Gets the target of a symbolic link. | Supported [4] |
+| `getFileChecksum` | `open` | Gets the checksum of a file. | Supported |
+| `setSafeMode` | `safemode_leave`, `safemode_enter`, `safemode_get`, `safemode_force_exit` | Enters or leaves safe mode. | Supported |
+| `recoverLease` | `recoverLease` | Recovers a file lease. | Supported |
+| `isFileClosed` | `isFileClosed` | Checks if a file is closed. | Supported |
+| `createSnapshot` | `createSnapshot` | Creates a snapshot. | Supported [5] |
+| `deleteSnapshot` | `deleteSnapshot` | Deletes a snapshot. | Supported [5] |
+| `renameSnapshot` | `renameSnapshot` | Renames a snapshot. | Supported [5] |
+| `getSnapshotDiffReport` | `computeSnapshotDiff` | Gets a snapshot diff report. | Supported [5] |
+| `getContentSummary` | `contentSummary` | Gets the content summary of a path. | Supported |
+| `getDelegationToken` | `getDelegationToken` | Gets a delegation token. | Supported |
+| `globStatus` | `listStatus` | Finds files matching a pattern. | Supported |
+| `copyFromLocalFile` | `getfileinfo` | Copies a file from the local filesystem. | Supported |
+| `exists` | `getfileinfo` | Checks if a path exists. | Supported |
+| `getFileBlockLocations` | `open` | Gets file block locations. | Supported |
+| `getTrashRoot` | `listSnapshottableDirectory`, `getEZForPath` | Gets the trash root for a path. | Supported |
+| `getTrashRoots` | `listStatus`, `listEncryptionZones` | Gets all trash roots. | Supported |
+| `isDirectory` | `getfileinfo` | Checks if a path is a directory. | Supported |
+| `isFile` | `getfileinfo` | Checks if a path is a file. | Supported |
+| `listFiles` | `listStatus` | Returns a remote iterator for files. | Supported |
+| `listLocatedStatus` | `listStatus` | Returns a remote iterator for located file statuses.| Supported |
+| `listStatusIterator` | `listStatus` | Returns a remote iterator for file statuses. | Supported |
+| `getDefaultBlockSize` | N/A | Gets the default block size. | Supported |
+| `getDefaultReplication` | N/A | Gets the default replication factor. | Supported |
+| `getHomeDirectory` | N/A | Gets the user's home directory. | Supported |
+| `getServerDefaults` | N/A | Gets the server default values. | Supported |
+| `getWorkingDirectory` | N/A | Gets the current working directory. | Supported |
+| `hasPathCapability` | N/A | Queries for a path capability. | Supported |
+| `setWorkingDirectory` | N/A | Sets the current working directory. | Supported |
+| `supportsSymlinks` | N/A | Checks if symbolic links are supported. | Supported |
+
+*Note: An audit log of N/A means the API is client-side only and does not access the NameNode.*
Review Comment:
yeah this one (and msync) does not record an audit log
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13421. [Docs] Ofs migration guide [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on PR #8784:
URL: https://github.com/apache/ozone/pull/8784#issuecomment-3059963088
Thanks @ayushtkn merged.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13421. [Docs] Ofs migration guide [ozone]
Posted by "ayushtkn (via GitHub)" <gi...@apache.org>.
ayushtkn commented on code in PR #8784:
URL: https://github.com/apache/ozone/pull/8784#discussion_r2199275956
##########
hadoop-hdds/docs/content/interface/Ofs.md:
##########
@@ -273,121 +273,161 @@ This feature wouldn't degrade server performance as the loop is on the client.
Think it as a client is issuing multiple requests to the server to get all the
information.
-## Operation Support
-
-lists the support status of Ofs operations
-
-### Supported
-
-| Operation | Description | Support |
-|------------------------|-------------------------------------------|----------------|
-| `create` | Creates a new file. | Supported |
-| `open` | Opens a file for reading. | Supported |
-| `rename` | Renames a file or directory. | Supported [1] |
-| `delete` | Deletes a file or directory. | Supported [2] |
-| `listStatus` | Lists the status of files in a directory. | Supported [3] |
-| `mkdirs` | Creates a directory and its parents. | Supported |
-| `getFileStatus` | Gets the status of a file. | Supported |
-| `setTimes` | Sets the modification and access times. | Supported |
-| `getLinkTarget` | Gets the target of a symbolic link. | Supported [4] |
-| `getFileChecksum` | Gets the checksum of a file. | Supported |
-| `setSafeMode` | Enters or leaves safe mode. | Supported |
-| `recoverLease` | Recovers a file lease. | Supported |
-| `isFileClosed` | Checks if a file is closed. | Supported |
-| `createSnapshot` | Creates a snapshot. | Supported [5] |
-| `deleteSnapshot` | Deletes a snapshot. | Supported [5] |
-| `renameSnapshot` | Renames a snapshot. | Supported [5] |
-| `getSnapshotDiffReport`| Gets a snapshot diff report. | Supported [5] |
-| `copyFromLocalFile` | Copies a file from the local filesystem. | Supported |
-| `exists` | Checks if a path exists. | Supported |
-| `getContentSummary` | Gets the content summary of a path. | Supported |
-| `getDefaultBlockSize` | Gets the default block size. | Supported |
-| `getDefaultReplication`| Gets the default replication factor. | Supported |
-| `getDelegationToken` | Gets a delegation token. | Supported |
-| `getFileBlockLocations`| Gets file block locations. | Supported |
-| `getHomeDirectory` | Gets the user's home directory. | Supported |
-| `getServerDefaults` | Gets the server default values. | Supported |
-| `getTrashRoot` | Gets the trash root for a path. | Supported |
-| `getTrashRoots` | Gets all trash roots. | Supported |
-| `getWorkingDirectory` | Gets the current working directory. | Supported |
-| `globStatus` | Finds files matching a pattern. | Supported |
-| `hasPathCapability` | Queries for a path capability. | Supported |
-| `isDirectory` | Checks if a path is a directory. | Supported |
-| `isFile` | Checks if a path is a file. | Supported |
-| `listFiles` | Returns a remote iterator for files. | Supported |
-| `listLocatedStatus` | Returns a remote iterator for located file statuses. | Supported |
-| `listStatusIterator` | Returns a remote iterator for file statuses. | Supported |
-| `setWorkingDirectory` | Sets the current working directory. | Supported |
-| `supportsSymlinks` | Checks if symbolic links are supported. | Supported |
-
-### Unsupported
-
-| Operation | Description |
-|------------------------|-------------------------------------------|
-| `append` | Appends to an existing file. |
-| `setPermission` | Sets the permission of a file. |
-| `setOwner` | Sets the owner of a file. |
-| `setReplication` | Sets the replication factor of a file. |
-| `createSymlink` | Creates a symbolic link. |
-| `resolveLink` | Resolves a symbolic link. |
-| `setXAttr` | Sets an extended attribute. |
-| `getXAttr` | Gets an extended attribute. |
-| `listXAttrs` | Lists extended attributes. |
-| `removeXAttr` | Removes an extended attribute. |
-| `setAcl` | Sets an ACL. |
-| `getAclStatus` | Gets an ACL status. |
-| `modifyAclEntries` | Modifies ACL entries. |
-| `removeAclEntries` | Removes ACL entries. |
-| `removeDefaultAcl` | Removes the default ACL. |
-| `removeAcl` | Removes an ACL. |
-| `truncate` | Truncates a file. |
-| `concat` | Concatenates files. |
+## Migrating from HDFS
+
+This guide helps you migrate applications from HDFS to Ozone by detailing the API-level compatibility of the Ozone File System (Ofs).
+
+To ensure a smooth transition, you should first verify that your existing applications will work with Ofs. You can check for potential incompatibilities by identifying the HDFS APIs your applications use.
+
+* **For Cluster Administrators**: Analyze the NameNode audit logs on your source HDFS cluster to identify the operations performed by your applications.
+* **For Application Developers**: Review your application's source code to identify which `FileSystem` or `DistributedFileSystem` APIs are being called.
+
+Once you have a list of APIs, compare it against the tables below to identify any unsupported operations.
+
+### Supported FileSystem APIs
+
+The following standard `FileSystem` APIs are supported by Ofs.
+
+| Operation | NameNode audit log | Description | Support |
+|-------------------------|---------------------------|-----------------------------------------------------|---------------|
+| `access` | `checkAccess` | Checks if the user can access a path. | Supported |
+| `create` | `create` | Creates a new file. | Supported |
+| `open` | `open` | Opens a file for reading. | Supported |
+| `rename` | `rename` | Renames a file or directory. | Supported [1] |
+| `delete` | `delete` | Deletes a file or directory. | Supported [2] |
+| `listStatus` | `listStatus` | Lists the status of files in a directory. | Supported [3] |
+| `mkdirs` | `mkdirs` | Creates a directory and its parents. | Supported |
+| `getFileStatus` | `getfileinfo` | Gets the status of a file. | Supported |
+| `setTimes` | `setTimes` | Sets the modification and access times. | Supported |
+| `getLinkTarget` | `getfileinfo` | Gets the target of a symbolic link. | Supported [4] |
+| `getFileChecksum` | `open` | Gets the checksum of a file. | Supported |
+| `setSafeMode` | `safemode_leave`, `safemode_enter`, `safemode_get`, `safemode_force_exit` | Enters or leaves safe mode. | Supported |
+| `recoverLease` | `recoverLease` | Recovers a file lease. | Supported |
+| `isFileClosed` | `isFileClosed` | Checks if a file is closed. | Supported |
+| `createSnapshot` | `createSnapshot` | Creates a snapshot. | Supported [5] |
+| `deleteSnapshot` | `deleteSnapshot` | Deletes a snapshot. | Supported [5] |
+| `renameSnapshot` | `renameSnapshot` | Renames a snapshot. | Supported [5] |
+| `getSnapshotDiffReport` | `computeSnapshotDiff` | Gets a snapshot diff report. | Supported [5] |
+| `getContentSummary` | `contentSummary` | Gets the content summary of a path. | Supported |
+| `getDelegationToken` | `getDelegationToken` | Gets a delegation token. | Supported |
+| `globStatus` | `listStatus` | Finds files matching a pattern. | Supported |
+| `copyFromLocalFile` | `getfileinfo` | Copies a file from the local filesystem. | Supported |
+| `exists` | `getfileinfo` | Checks if a path exists. | Supported |
+| `getFileBlockLocations` | `open` | Gets file block locations. | Supported |
+| `getTrashRoot` | `listSnapshottableDirectory`, `getEZForPath` | Gets the trash root for a path. | Supported |
+| `getTrashRoots` | `listStatus`, `listEncryptionZones` | Gets all trash roots. | Supported |
+| `isDirectory` | `getfileinfo` | Checks if a path is a directory. | Supported |
+| `isFile` | `getfileinfo` | Checks if a path is a file. | Supported |
+| `listFiles` | `listStatus` | Returns a remote iterator for files. | Supported |
+| `listLocatedStatus` | `listStatus` | Returns a remote iterator for located file statuses.| Supported |
+| `listStatusIterator` | `listStatus` | Returns a remote iterator for file statuses. | Supported |
+| `getDefaultBlockSize` | N/A | Gets the default block size. | Supported |
+| `getDefaultReplication` | N/A | Gets the default replication factor. | Supported |
+| `getHomeDirectory` | N/A | Gets the user's home directory. | Supported |
+| `getServerDefaults` | N/A | Gets the server default values. | Supported |
+| `getWorkingDirectory` | N/A | Gets the current working directory. | Supported |
+| `hasPathCapability` | N/A | Queries for a path capability. | Supported |
+| `setWorkingDirectory` | N/A | Sets the current working directory. | Supported |
+| `supportsSymlinks` | N/A | Checks if symbolic links are supported. | Supported |
+
+*Note: An audit log of N/A means the API is client-side only and does not access the NameNode.*
Review Comment:
I can live with it :-)
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13421. [Docs] Ofs migration guide [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang merged PR #8784:
URL: https://github.com/apache/ozone/pull/8784
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org