Skip to content

Commit f3efc47

Browse files
committed
Added repo for cassandra-loader for use as a library
1 parent 5aa5bff commit f3efc47

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,21 @@
88
<artifactId>cdm</artifactId>
99
<version>0.9</version>
1010

11+
<repositories>
12+
<repository>
13+
<id>git-pmcfadin</id>
14+
<name>[username]'s Git based repo</name>
15+
<url>https://github.com/pmcfadin/cassandra-loader/raw/master/</url>
16+
</repository>
17+
</repositories>
18+
1119
<dependencies>
1220

21+
<dependency>
22+
<groupId>com.datastax.loader</groupId>
23+
<artifactId>com.datastax.loader</artifactId>
24+
<version>0.20.0</version>
25+
</dependency>
1326
<dependency>
1427
<groupId>org.eclipse.jgit</groupId>
1528
<artifactId>org.eclipse.jgit</artifactId>

src/main/java/com/datastax/cdm/CassandraDatasetManager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.datastax.cdm;
22

3+
import com.datastax.loader.CqlDelimLoad;
34
import com.fasterxml.jackson.core.type.TypeReference;
45
import com.fasterxml.jackson.databind.ObjectMapper;
56
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
@@ -10,6 +11,9 @@
1011
import org.eclipse.jgit.api.errors.InvalidRemoteException;
1112
import org.eclipse.jgit.api.errors.TransportException;
1213

14+
15+
import com.datastax.loader.CqlDelimLoadTask;
16+
1317
import java.io.*;
1418
import java.net.MalformedURLException;
1519
import java.net.URL;
@@ -30,6 +34,10 @@ public class CassandraDatasetManager {
3034

3135

3236
public static void main(String[] args) throws IOException, ParseException, InterruptedException, GitAPIException {
37+
38+
// Just a test to see if we can load the cassandra-loader classes
39+
CqlDelimLoadTask task = new CqlDelimLoadTask();
40+
3341
System.out.println("Starting CDM");
3442

3543
// check for the .cdm directory

0 commit comments

Comments
 (0)