2017-06-14 55 views
1

我開始使用JanusGraph作爲庫的依賴Scala的項目:如何使用SBT使用DynamoDB Janusgraph存儲後端?

"org.janusgraph" % "janusgraph-core" % "0.1.1",

該項目目前其使用inmemory存儲後端。不過,我想使用DynamoDB來保存我的圖並最終在AWS上部署應用程序。

我找到了JanusGraph https://github.com/awslabs/dynamodb-janusgraph-storage-backend的DynamoDB插件,並按照指南運行Marvel Universe示例。然而,當我嘗試添加庫到我的build.sbt文件:

"com.amazonaws" % "dynamodb-janusgraph-storage-backend" % "1.1.0"

它說,圖書館沒有被發現。

回答

1

我發佈了對JanusGraph 0.1.1到Central/Sonatype的支持。您可以使用"com.amazonaws" % "dynamodb-janusgraph-storage-backend" % "1.1.0"來引入依賴關係。

+0

隨着在SBT項目中使用dynamodb-janusgraph依賴,它將運行在同一個Java/Scala的應用程序中的小鬼服務器。這是否會造成性能或負載問題?你會推薦單獨運行它並使用java的遠程方法進行連接,或者最有效的方法是什麼? – monali01

0

如果使用階精怪,這將是構建文件

scalaVersion := "2.11.8" 

libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.1.1", 
"org.apache.spark" %% "spark-sql" % "2.1.1", 
"org.apache.spark" % "spark-streaming_2.11" % "2.1.1", 
"org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.1.1", 
"org.janusgraph" % "janusgraph-core" % "0.1.1", 
"org.janusgraph" % "janusgraph-es" % "0.1.1", 
"com.amazonaws" % "dynamodb-janusgraph-storage-backend" % "1.1.0", 
"com.michaelpollmeier" % "gremlin-scala_2.11" % "3.2.5.1", 
"com.tinkerpop.blueprints" % "blueprints-core" % "2.6.0", 
"org.scalactic" %% "scalactic" % "3.0.0", 
"org.scalatest" %% "scalatest" % "3.0.0" 
) 

resolvers ++= Seq(
Resolver.mavenLocal, 
"jitpack" at "https://jitpack.io", 
Resolver.sonatypeRepo("releases"), 
Resolver.sonatypeRepo("snapshots") 
) 
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full) 
相關問題