piotr-szuberski commented on pull request #12297:
URL: https://github.com/apache/beam/pull/12297#issuecomment-665688027


   @TheNeuralBit I did my best to make read test work but without success. I 
tried what people suggested here 
https://github.com/localstack/localstack/issues/507 and 
https://stackoverflow.com/a/56867870/7946496 but nothing worked.
   
   When I use http in service_endpoint, which works for boto3 python sdk I get 
error:
   `com.amazonaws.services.kinesis.model.AmazonKinesisException: null (Service: 
AmazonKinesis; Status Code: 500; Error Code: null; Request ID: null)`
   
   When I use https in the transform argument service_endpoint I get
   `sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target`
   I tried to run jars with these flags: 
`-Dcom.sun.net.ssl.checkRevocation=false`, `-Dtrust_all_cert=true` 
`-Dcom.amazonaws.sdk.disableCertChecking`
   
   Setting these values in the main method of expansion service also had no 
effect.
   ```
       
System.setProperty(SDKGlobalConfiguration.DISABLE_CERT_CHECKING_SYSTEM_PROPERTY,
 "true");
       
System.setProperty(SDKGlobalConfiguration.AWS_CBOR_DISABLE_SYSTEM_PROPERTY, 
"true");
       System.setProperty("com.sun.net.ssl.checkRevocation", "true");
   ```
   
   So I'm a bit stuck. How about skipping the read test and creating a Jira 
issue to make it work? I think that it's possible to run this test with 
localstack but I'm missing something. I've spent a lot of time on it already 
and I doubt I'll come up with something.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to