Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

881
Views
Cannot connect to local DynamoDB

I cannot connect to DynamoDB that is running local using cli.

aws dynamodb list-tables --endpoint-url http://localhost:8000

Could not connect to the endpoint URL: "http://localhost:8000/"

This doesn't work either: aws dynamodb list-tables --region local Could not connect to the endpoint URL: "http://localhost:8000/"

I tried using a different port and that didn't help. I disabled all proxies too. I am able to connect to DynamoDB using an application like this so I know it's not a dynamodb issue: aws dynamodb list-tables --endpoint-url http://dynamodb.us-west-2.amazonaws.com --region us-west-2

{ "TableNames": [ "Music" ] }

๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ

over 4 years ago ยท Santiago Trujillo
2 answers
Answer question

0

When you run

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

command from your terminal make sure output will be like below and no service will be running on port 8000:

Initializing DynamoDB Local with the following configuration:
Port:   8000
InMemory:       false
DbPath: null
SharedDb:       true
shouldDelayTransientStatuses:   false
CorsParams:     *

It means, this service running successfully on port 8000.

DynamoDB requires any/fake credentials to work.

AWS Access Key ID: "fakeMyKeyId"
AWS Secret Access Key: "fakeSecretAccessKey"

then try below command to list tables.

aws dynamodb list-tables --endpoint-url http://localhost:8000
over 4 years ago ยท Santiago Trujillo Report

0

The error in your logs is the key here Caused by: java.lang.UnsatisfiedLinkError: no sqlite4java-osx-x86_64 in java.library.path: [.]

This means that the specific dependency cannot be located.

The link that Saranjeet provided has a few solutions. I prefer this solution for testing:

First, you need to download the zip file from offcial website. Unzip the file, copy all the *.dll, *.dylib, *.so to a folder under your project root. Say, src/test/resources/libs.
Then, add the code

System.setProperty("sqlite4java.library.path", "src/test/resources/libs/");
before you initialize a local instance of AmazonDynamoDB.
over 4 years ago ยท Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!