Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rate must be positive #1

Open
okiess opened this issue Feb 17, 2020 · 0 comments
Open

rate must be positive #1

okiess opened this issue Feb 17, 2020 · 0 comments

Comments

@okiess
Copy link

okiess commented Feb 17, 2020

When I use this command as shown in the Readme:

java -jar dynamodb-to-s3-<version>.jar restore \
  --table my-table \
  --source s3://my-bucket/2017/10/27/my-table.json

I get this exception (on MacOS Catalina / Java(TM) SE Runtime Environment (build 1.8.0_221-b11))

java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:735) ~[spring-boot-1.5.10.RELEASE.jar!/:1.5.10.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:716) [spring-boot-1.5.10.RELEASE.jar!/:1.5.10.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:703) [spring-boot-1.5.10.RELEASE.jar!/:1.5.10.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:304) [spring-boot-1.5.10.RELEASE.jar!/:1.5.10.RELEASE]
at io.sensefly.dynamodbtos3.ApplicationKt.main(Application.kt:13) [classes!/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_221]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_221]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_221]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [dynamodb-to-s3-1.1.0.jar:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [dynamodb-to-s3-1.1.0.jar:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [dynamodb-to-s3-1.1.0.jar:?]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [dynamodb-to-s3-1.1.0.jar:?]
Caused by: java.lang.IllegalArgumentException: rate must be positive
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:135) ~[guava-23.2-jre.jar!/:?]
at com.google.common.util.concurrent.RateLimiter.setRate(RateLimiter.java:219) ~[guava-23.2-jre.jar!/:?]
at com.google.common.util.concurrent.RateLimiter.create(RateLimiter.java:128) ~[guava-23.2-jre.jar!/:?]
at com.google.common.util.concurrent.RateLimiter.create(RateLimiter.java:122) ~[guava-23.2-jre.jar!/:?]
at io.sensefly.dynamodbtos3.RestoreTable.restore(RestoreTable.kt:40) ~[classes!/:?]
at io.sensefly.dynamodbtos3.commandline.CommandLineParser.run(CommandLineParser.kt:43) ~[classes!/:?]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:732) ~[spring-boot-1.5.10.RELEASE.jar!/:1.5.10.RELEASE]
... 12 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant