In this blog post, I’m going to be sharing with you how to set up and configure DynamoDB on Linux using the Ubuntu distribution. You can use this steps to configure your own setup just as long as you follow this process.
Before we get started I want to provide you with a checklist that you can follow along and check items as you go. This will do a couple of things but the most important one keep you on track with what steps you missed and how much more you have to go.
Install Java Runtime Environment
Verify that you can see Java
Download DynamoDB to local machine and uncompress
Create a directory for service
Move jar files and give them right permissions
Create a user that will run the service
Create a Daemon
Verify service is up
Automation Script
Download and install Java
Verify you can see the JRE
Download Local DynamoDB to your machine and unzip them
Create a deploy directory for the service daemon and move jar
files over to the location
Create a user that will run the service
Create a Daemon
Daemon Sample
Reload Daemon service
Verify service is up
Troubleshooting problems, when I was setting this up a couple of handy commands are the system logs and the ports that are being used.
That will do it, now everytime your machine startups, you will have DynamoDB service working in the background.
For those that just want to automate this entire thing away, you can use a script that I wrote with bash. You can find it on github or by just running the following commands on the terminal.
Talk to you next time,
Rick H.
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More