【发布时间】:2018-03-18 03:15:31
【问题描述】:
我可以使用这个命令在本地启动 Dynamodb -
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
我收到对上述命令的以下响应-
Initializing DynamoDB Local with the following configuration:
Port: 8000
InMemory: false
DbPath: null
SharedDb: true
shouldDelayTransientStatuses: false
CorsParams: *
但是,当我在 AWS CLI 上输入以下命令以设置本地端点时-
aws dynamodb list-tables --endpoint-url http://localhost:8000
我遇到了错误-
An error occurred (504) when calling the ListTables operation (reached max retries: 9): <HTML>
<HEAD><TITLE>The Proxy Was Unable to Fulfill Your Request</TITLE></HEAD>
<BODY>
<H1>The Proxy Was Unable to Fulfill Your Request</H1>
<HR SIZE="1">
<P>The proxy was unable to fulfill your request because it could not contact the computer at localhost:8000 (Connection reset by peer).</P>
<P>The website may be temporarily unavailable. If later attempts to access this website are still unsuccessful, you may wish to contact the website's adminis
tor.
</P>
<HR SIZE="1">
</BODY>
</HTML>
我的 PC 的本地代理设置为绕过本地地址,包括 localhost。我也尝试使用 CLI 设置 AWS HTTP 和 HTTPS 代理。但它没有用。然后我尝试使用 AWS Eclipse 插件并使用它,我可以连接到本地主机上的 dynamodb(仅通过 Eclipse,而不是通过 CLI)。我希望能够使用 CLI 来处理本地 dynamodb。
请帮忙。
谢谢, 库纳尔
【问题讨论】:
-
你能在浏览器中打开网址localhost:8000/shell吗?
-
@notionquest 是的,我可以。
标签: localhost amazon-dynamodb http-proxy