Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.69 KB

File metadata and controls

59 lines (46 loc) · 1.69 KB

ArangoDB Spark Connector - Getting Started

Maven

<dependencies>
  <dependency>
    <groupId>com.arangodb</groupId>
    <artifactId>arangodb-spark-connector</artifactId>
    <version>1.0.2</version>
  </dependency>
	....
</dependencies>

SBT

libraryDependencies += "com.arangodb" % "arangodb-spark-connector" % "1.0.2"

Configuration

property-key description default value
arangodb.hosts comma separated list of ArangoDB hosts 127.0.0.1:8529
arangodb.user basic authentication user root
arangodb.password basic authentication password
arangodb.protocol network protocol VST
arangodb.useSsl use SSL connection false
arangodb.ssl.keyStoreFile SSL certificate keystore file
arangodb.ssl.passPhrase SSL pass phrase
arangodb.ssl.protocol SSL protocol TLS

Setup SparkContext

Scala

val conf = new SparkConf()
    .set("arangodb.hosts", "127.0.0.1:8529")
    .set("arangodb.user", "myUser")
    .set("arangodb.password", "myPassword")
    ...

val sc = new SparkContext(conf)

Java

SparkConf conf = new SparkConf()
    .set("arangodb.hosts", "127.0.0.1:8529")
    .set("arangodb.user", "myUser")
    .set("arangodb.password", "myPassword");
    ...

JavaSparkContext sc = new JavaSparkContext(conf);