I've got Titan 1.0.0 working. I'm running into some trouble attempting to run the tests though. I'm trying to follow the instructions here, but I was just going to run the tests locally (on OS X, if it matters). Running
mvn install works fine, but
mvn test -Pstart-dynamodb-local gives me the following error:
[INFO] --- exec-maven-plugin:1.2:exec (default) @ dynamodb-titan100-storage-backend --- Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more
If I add commons-cli:commons-cli:1.2 as a compile scope dependency, it fails with a different class not found. So I think it may just be classpath problems, but I can't find it. Not sure if this is relevant (I don't think so, but figured I'd mention it), but the
src/assembly/component.xml mentioned in the
share profile doesn't exist. Since the profile is triggered on the file's existence, I'm guessing this is something you drop in when you need it and it shouldn't affect anything else.
Just to make sure it wasn't my changes causing the problem, I tried the 0.5.4 branch. I can't even get that branch to compile. Running
mvn clean install fails with the this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project dynamodb-titan054-storage-backend: Compilation failure: Compilation failure: [ERROR] /Users/jfklin1/projects/public/dynamodb-titan-storage-backend/src/main/java/com/amazon/titan/diskstorage/dynamodb/DynamoDBDelegate.java:[36,40] package org.apache.commons.lang3.builder does not exist [ERROR] /Users/jfklin1/projects/public/dynamodb-titan-storage-backend/src/main/java/com/amazon/titan/diskstorage/dynamodb/DynamoDBDelegate.java:[809,15] cannot find symbol [ERROR] symbol: class EqualsBuilder [ERROR] location: class com.amazon.titan.diskstorage.dynamodb.DynamoDBDelegate [ERROR] /Users/jfklin1/projects/public/dynamodb-titan-storage-backend/src/main/java/com/amazon/titan/diskstorage/dynamodb/DynamoDBDelegate.java:[809,43] cannot find symbol [ERROR] symbol: class EqualsBuilder [ERROR] location: class com.amazon.titan.diskstorage.dynamodb.DynamoDBDelegate
If it'd be helpful, I can post the full command output, but I was trying to keep this readable. Like I said though, the core functionality seems to be working. I just can't seem to get the tests to run. Any help would be appreciated.