Konrad
07/23/2021, 7:46 PMlakectl fs upload
. The issue is, that under the hood it probably uses single part upload, cause I received and error
Error executing command: request failed: [500 Internal Server Error] s3 error: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>EntityTooLarge</Code><Message>Your proposed upload exceeds the maximum allowed size</Message><ProposedSize>5667614938</ProposedSize><MaxSizeAllowed>5368709120</MaxSizeAllowed><RequestId>BCJHP7ZY8N0V025N</RequestId>
Is there a way to force this to use multipart upload to s3? Or am I missing something and should look in another place?
btw. I cannot use aws s3 client, as we don’t have proper DNS settings on AWS in place yet…Yoni Augarten
07/23/2021, 7:51 PMYoni Augarten
07/23/2021, 7:53 PMKonrad
07/23/2021, 8:04 PMKonrad
07/23/2021, 8:06 PMYoni Augarten
07/23/2021, 8:07 PMKonrad
07/23/2021, 8:07 PMYoni Augarten
07/23/2021, 8:08 PMlakectl --version
?Konrad
07/23/2021, 8:09 PM➜ lakectl --version
lakectl version 0.46.0
Yoni Augarten
07/23/2021, 8:11 PMYoni Augarten
07/23/2021, 8:11 PM--direct
to the upload command?Konrad
07/23/2021, 8:17 PMError executing command: upload to backing store: EntityTooLarge: Your proposed upload exceeds the maximum allowed size
status code: 400, request id: STCH3KZ1PWFVS4X5
This is the exact command I’ve used is
➜ lakectl fs upload --direct <lakefs://topic-classification/master/nkjp+wiki.txt> -s nkjp+wiki.txt
Yoni Augarten
07/23/2021, 8:18 PMKonrad
07/23/2021, 8:18 PMYoni Augarten
07/23/2021, 8:21 PMgateways.s3.domain_name
to <http://s3.workaround.com|s3.workaround.com>
(the value itself doesn't really matter). Restart lakeFS with this new configuration.
2. In your local machine, edit your /etc/hosts file and add the following entries (note I've added your repo name in the second one):
<your ec2 instance ip> <http://s3.workaround.com|s3.workaround.com>
<your ec2 instance ip> <http://topic-classification.s3.workaround.com|topic-classification.s3.workaround.com>
Yoni Augarten
07/23/2021, 8:21 PMaws s3 cp --endpoint-url <http://s3.workaround.com:8000> nkjp+wiki.txt <s3://topic-classification/master/nkjp+wiki.txt>
Konrad
07/23/2021, 8:23 PMYoni Augarten
07/23/2021, 8:23 PMYoni Augarten
07/23/2021, 8:24 PMKonrad
07/23/2021, 8:58 PMYoni Augarten
07/23/2021, 9:00 PM