This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i=0 to 3: | |
| cassandra-stress write no-warmup n=175000000 cl=ALL | |
| -rate threads=500 | |
| -schema 'replication(factor=2) keyspace=keyspace' | |
| -col 'size=FIXED(4000) n=FIXED(1)' | |
| -mode cql3 native connectionsPerHost=66 | |
| -pop 'seq=((i*n)+1)..((i+1)*n)' # where n=175000000 | |
| -node node2 | |
| -errors ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tar -xzf confluent-5.0.0-2.11.tar.gz | |
| cd confluent-5.0.0/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "AAPL": { | |
| "quote": { | |
| "latestPrice": 221.43, | |
| "latestSource": "IEX real time price", | |
| "latestUpdate": 1537455071032, | |
| "latestVolume": 18919004, | |
| "previousClose": 218.37, | |
| "symbol": "AAPL" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val writer = df.write.cassandraFormat(table = "test", keyspace = "test") | |
| // writer: org.apache.spark.sql.DataFrameWriter[org.apache.spark.sql.Row] = org.apache.spark.sql.DataFrameWriter@6cf47d05 |
NewerOlder