xloya commented on issue #4586:
URL: https://github.com/apache/gravitino/issues/4586#issuecomment-2303600444
> @jerryshao yes,the problem has been resolved. May I ask another question?I
want to know if the file system can be converted to Hadoop's Distributed
FileSystem, because when I try the following code: `
conf.set("fs.AbstractFileSystem.gvfs.impl","com.datastrato.gravitino.filesystem.hadoop.Gvfs");
conf.set("fs.gvfs.impl","com.datastrato.gravitino.filesystem.hadoop.GravitinoVirtualFileSystem");
conf.set("fs.gravitino.server.uri","http://localhost:8090");
conf.set("fs.gravitino.client.metalake","metalake_demo"); Path filesetPath =
new Path("gvfs://fileset/test_catalog/hzySchema/example_fileset/"); FileSystem
fs = filesetPath.getFileSystem(conf); DistributedFileSystem dfs =
(DistributedFileSystem) fs;`
>
> an error message will appear
"com.datastrato.gravitino.filesystem.hadoop.GravitinoVirtualFileSystem cannot
be cast to org.apache.hadoop.hdfs.DistributedFileSystem"
@heziyi399 `GravitinoVirtualFileSystem` extends the super abstract class
`FileSystem`, so you cannot cast it to the `DistributedFileSystem` which also
one of the child class for the `FileSystem`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]