Skip to content

Commit b21eea6

Browse files
committed
Merge branch 'master' of github.com:Nardoz/pine
2 parents 2d3537f + 8f7255c commit b21eea6

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22
webapi/node_modules/*
3-
data/*
3+
data/*
4+
backend/.idea/
5+
backend/.idea_modules/

backend/README.md

+27-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,35 @@ Lee un archivo con tweets e inserta los datos en C*
44

55

66
## Pre Requisitos
7-
* sbt `brew install sbt`
8-
* Cassandra 2.0.9
9-
* Spark 1.0.2
7+
* sbt
8+
* Cassandra
9+
* Apache Spark
1010

11-
## Usando con Spark-Shell
11+
```bash
12+
$ brew install sbt cassandra apache-spark
1213
```
14+
15+
##Creando el modelo de datos
16+
```bash
17+
cassandra -f
18+
19+
# Abrir otra ventana
20+
cqlsh -f extras/nardoz_pine.cql
21+
22+
23+
cqlsh -k nardoz_pine
24+
Connected to Test Cluster at 127.0.0.1:9042.
25+
[cqlsh 5.0.1 | Cassandra 2.1.6 | CQL spec 3.2.0 | Native protocol v3]
26+
Use HELP for help.
27+
28+
cqlsh:nardoz_pine> DESCRIBE TABLES;
29+
30+
rts_tweet_stats replies_tweet_stats rts_flock replies_flock
31+
```
32+
33+
34+
## Usando con Spark-Shell
35+
```bash
1336
sbt assembly && \
1437
spark-shell -i extras/shell-init.scala --jars target/scala-2.10/pine-backend-assembly-0.1.0.jar
1538
```

0 commit comments

Comments
 (0)