如何使用Lambda批量加载AWS Neptune ?



我正在尝试使用加载器端点和Apache HTTP客户端进行批量加载,如下面所示。

My lambda is in the same VPC as Neptune and has the same sub-nets and Security group as well.
However i'm seeing : 
`org.apache.http.NoHttpResponseException: cluster-endpoint-url:8182 failed to respond`
ObjectMapper objectMapper = new ObjectMapper();
String requestBodyJSON = objectMapper
.writeValueAsString(values);
CloseableHttpClient httpclient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost("http://endpont:8182/loader");
log.info("Initiated HTTP Client ");
HttpEntity stringEntity = new StringEntity(requestBodyJSON, ContentType.APPLICATION_JSON);
httpPost.setEntity(stringEntity);
CloseableHttpResponse response2 = httpclient.execute(httpPost);
log.info("RESPONSE is "+ response2);
<代码>

可能的问题是https://与CC_3的使用。海王星不允许非ssl/TLS连接。还要检查您的安全组配置。海王星的安全组应该允许来自子网或Lambda函数使用的安全组的入站流量。

最新更新