Closed wgzhao closed 1 year ago
It's a known issue that s3 doesn't support blocking operation yet and we need to enable blocking layer to make it work.
cc @tisonkun, would you like to take a look over enable BlockingLayer for java binding by default?
I also try to test redis
, sftp
Operator, they both got the following error:
Exception in thread "main" org.apache.opendal.OpenDALException: Unsupported (permanent) at , context: { scheme: redis } => scheme is not enabled or supported
at org.apache.opendal.BlockingOperator.constructor(Native Method)
at org.apache.opendal.BlockingOperator.<init>(BlockingOperator.java:41)
at com.wgzhao.addax.plugin.writer.txtfilewriter.OpendalUtil.main(OpendalUtil.java:71)
I also use Redis
, REDIS
, sftp
, Sftp
as the operator scheme.
Is there something wrong with the code I wrote or is there a problem with the Java binding itself at the current?
Is there something wrong with the code I wrote or is there a problem with the Java binding itself at the current?
redis
and sftp
service requires enabling extra features, thus opendal-java v0.39 doesn't bundle them. We have enabled them by default at main
branch so I believe this will be fixed in our next release.
And for s3
support, opendal-java v0.39 only support been used in async way.
for s3
, I also try to use Operator
class , the class comment indicates that it's async way, but it does not work.
for
s3
, I also try to useOperator
class , the class comment indicates that it's async way, but it does not work.
Oh, that's unexpected. Would you like to share your code snippet? I'm willing to take a look.
The code in the first comment is complete I also upload a complete maven project later.
The code in the first comment is complete
Hi, BlockingOperator
for s3
in opendal-java v0.39 is known to be non-working. But Operator
should work with async way.
0.39.0 opendal-java contains several bugs:
enable_io
which is exactly the error message you met and the root cause that async operator not work.This should be fixed in the next release.
@Xuanwo @tisonkun I create a opendal java binding example project, please check it.
I want to ingrate opendal into my project. I wrote a simple java binding smoking test code but failed.
It gives me the following error:
I also try to use
Operator
to replaceBlockingOperator
, it gives me the following error:here my
pom.xml