This error is occurs from the REST API.
A table is created successfully and store in an s3 location: s3a://<Path_to_Table>/
but when we try to read the data get the following errors:
ERROR:root:Problem reaching https://<url.:7184/api/...
ERROR:root:Status code 400
ERROR:root:Response: Request failed.
Task failed due to an internal error. Error reading from HDFS file: s3a://<Path_to_Table>/<File>
Error(255): Unknown error 255
Solution 1 (Bad encryprion method)
The file was encrypted with AWS-KMS, when it should have been encrypted with AES-256. Changing the encryption method will allow Okera to read the data.
Solution 2 (Insufficient IAM permissions):
The IAM policy for the bucket location is not correct.Update the IAM policy so the y file can
aws s3 cp s3://<Path_to_Table>/<File> -
fatal error: An error occurred (403) when calling the HeadObject operation: ForbiddenU
Update the policy and try again. Once the Okera user can access/decrypt the data from the AWS CLI, the Okera platform will be able process it.