Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit 45a0c11

Browse files
Alexander PatrikalakisAlexander Patrikalakis
authored andcommitted
Support for JanusGraph 0.2.0 and TinkerPop 3.2.6
1 parent 85c69ba commit 45a0c11

File tree

10 files changed

+66
-773
lines changed

10 files changed

+66
-773
lines changed

dynamodb-janusgraph-storage-backend-cfn.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Resources:
506506
- "sdk install maven < /dev/null && set -x\n"
507507
- "export GREMLIN_SERVER_USERNAME='ec2-user'\n"
508508
- "export LOG_DIR=/var/log/gremlin-server\n"
509-
- "export SERVER_DIRNAME=dynamodb-janusgraph-storage-backend-1.1.1\n"
509+
- "export SERVER_DIRNAME=dynamodb-janusgraph-storage-backend-1.2.0\n"
510510
- "export SERVER_ZIP=${SERVER_DIRNAME}.zip\n"
511511
- "export PACKAGES_DIR=/usr/local/packages\n"
512512
- "export INSTALL_DIR=${PACKAGES_DIR}/${SERVER_DIRNAME}\n"
@@ -552,7 +552,7 @@ Outputs:
552552
- Fn::GetAtt:
553553
- WebServerInstance
554554
- PublicDnsName
555-
- " /usr/local/packages/dynamodb-janusgraph-storage-backend-1.1.1/bin/gremlin.sh"
555+
- " /usr/local/packages/dynamodb-janusgraph-storage-backend-1.2.0/bin/gremlin.sh"
556556
Description: Use this remote shell to interact with the graph.
557557
GremlinServerEndpoint:
558558
Value:

pom.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.amazonaws</groupId>
44
<artifactId>dynamodb-janusgraph-storage-backend</artifactId>
5-
<version>1.1.1</version>
5+
<version>1.2.0</version>
66
<packaging>jar</packaging>
77
<name>Amazon DynamoDB Storage Backend for JanusGraph</name>
88
<url>https://github.com/awslabs/dynamodb-janusgraph-storage-backend</url>
99
<description>The Amazon DynamoDB Storage Backend for JanusGraph: Distributed Graph Database allows JanusGraph graphs to use DynamoDB as a storage backend.</description>
1010
<scm>
1111
<url>[email protected]:awslabs/dynamodb-janusgraph-storage-backend.git</url>
12-
<tag>jg0.1.1-1.1.1</tag>
12+
<tag>jg0.2.0-1.2.0</tag>
1313
</scm>
1414
<properties>
1515
<default.test.jvm.opts>-Xms256m -Xmx1280m -XX:+HeapDumpOnOutOfMemoryError</default.test.jvm.opts>
@@ -18,18 +18,18 @@
1818
<dynamodb-local.port>4567</dynamodb-local.port>
1919
<dynamodb-local.endpoint>http://localhost:${dynamodb-local.port}</dynamodb-local.endpoint>
2020
<jdk.version>1.8</jdk.version>
21-
<aws.java.sdk.version>1.11.160</aws.java.sdk.version>
22-
<janusgraph.version>0.1.1</janusgraph.version>
23-
<tinkerpop.version>3.2.3</tinkerpop.version>
24-
<dependency.plugin.version>2.10</dependency.plugin.version>
25-
<maven.assembly.plugin.version>2.5.5</maven.assembly.plugin.version>
26-
<maven.compiler.plugin.version>3.3</maven.compiler.plugin.version>
27-
<maven.surefire.version>2.18.1</maven.surefire.version>
28-
<maven.failsafe.version>2.19.1</maven.failsafe.version>
29-
<maven.resources.plugin.version>2.7</maven.resources.plugin.version>
30-
<exec.maven.plugin.version>1.2</exec.maven.plugin.version>
21+
<aws.java.sdk.version>1.11.221</aws.java.sdk.version>
22+
<janusgraph.version>0.2.0</janusgraph.version>
23+
<tinkerpop.version>3.2.6</tinkerpop.version>
24+
<dependency.plugin.version>3.0.2</dependency.plugin.version>
25+
<maven.assembly.plugin.version>3.1.0</maven.assembly.plugin.version>
26+
<maven.compiler.plugin.version>3.6.2</maven.compiler.plugin.version>
27+
<maven.surefire.version>2.20</maven.surefire.version>
28+
<maven.failsafe.version>2.20</maven.failsafe.version>
29+
<maven.resources.plugin.version>3.0.2</maven.resources.plugin.version>
30+
<exec.maven.plugin.version>1.6</exec.maven.plugin.version>
3131
<download.maven.plugin.version>1.2.1</download.maven.plugin.version>
32-
<slf4j.version>1.7.21</slf4j.version>
32+
<slf4j.version>1.7.25</slf4j.version>
3333
<opencsv.version>3.8</opencsv.version>
3434
<metrics3.version>3.0.1</metrics3.version>
3535
<commons.logging.version>1.1.1</commons.logging.version>
@@ -258,7 +258,7 @@
258258
<plugin>
259259
<groupId>org.apache.maven.plugins</groupId>
260260
<artifactId>maven-dependency-plugin</artifactId>
261-
<version>3.0.0</version>
261+
<version>${dependency.plugin.version}</version>
262262
<executions>
263263
<execution>
264264
<id>analyze</id>

src/main/java/com/amazon/janusgraph/diskstorage/dynamodb/DynamoDBStoreManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.util.List;
2323
import java.util.Map;
2424

25+
import com.amazonaws.services.dynamodbv2.model.ListTablesRequest;
2526
import org.janusgraph.diskstorage.BackendException;
2627
import org.janusgraph.diskstorage.BaseTransactionConfig;
2728
import org.janusgraph.diskstorage.PermanentBackendException;
@@ -123,6 +124,11 @@ public void clearStorage() throws BackendException {
123124
log.debug("Exiting clearStorage returning:void");
124125
}
125126

127+
@Override
128+
public boolean exists() throws BackendException {
129+
return client.getDelegate().listTables(new ListTablesRequest()) != null;
130+
}
131+
126132
@Override
127133
public void close() throws BackendException {
128134
log.debug("Entering close");

0 commit comments

Comments
 (0)