File tree 2 files changed +30
-5
lines changed
2 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
webapi /node_modules /*
3
- data /*
3
+ data /*
4
+ backend /.idea /
5
+ backend /.idea_modules /
Original file line number Diff line number Diff line change @@ -4,12 +4,35 @@ Lee un archivo con tweets e inserta los datos en C*
4
4
5
5
6
6
## Pre Requisitos
7
- * sbt ` brew install sbt `
8
- * Cassandra 2.0.9
9
- * Spark 1.0.2
7
+ * sbt
8
+ * Cassandra
9
+ * Apache Spark
10
10
11
- ## Usando con Spark-Shell
11
+ ``` bash
12
+ $ brew install sbt cassandra apache-spark
12
13
```
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
13
36
sbt assembly && \
14
37
spark-shell -i extras/shell-init.scala --jars target/scala-2.10/pine-backend-assembly-0.1.0.jar
15
38
```
You can’t perform that action at this time.
0 commit comments