This file contains 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
6177317 function calls (6105118 primitive calls) in 8.067 seconds | |
Ordered by: cumulative time | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.028 0.028 8.075 8.075 ctest.py:1(<module>) | |
10000 0.066 0.000 7.910 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/models.py:470(create) | |
10000 0.071 0.000 7.754 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/query.py:521(create) | |
10000 0.086 0.000 7.219 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/models.py:489(save) | |
10000 0.168 0.000 5.402 0.001 /Users/jhaddad/.virtualenvs/tmp/lib/python2.7/site-packages/cqlengine/query.py:821(save) |
This file contains 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
jhaddad@jons-mac-pro ~$ cat test.py | |
print "hello", | |
print "hello", | |
jhaddad@jons-mac-pro ~$ python test.py | |
hello hello |
This file contains 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
====================================================================== | |
FAIL: Tests that columns of an instance can be read as a dict. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/travis/build/cqlengine/cqlengine/cqlengine/tests/model/test_model_io.py", line 65, in test_model_read_as_dict | |
self.assertEquals(sorted(tm.values()), sorted(column_dict.values())) | |
AssertionError: Lists differ: [8L, UUID('90c38c5e-bec9-4d46-... != [True, 8L, UUID('90c38c5e-bec9... | |
First differing element 0: | |
8 | |
True |
This file contains 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
apt-get update | |
apt-get upgrade | |
apt-get install sysstat | |
sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r) | |
apt-get install fuse | |
apt-get install git | |
apt-get install cmake |
This file contains 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
from cassandra.cluster import Cluster | |
from cassandra.query import SimpleStatement | |
c = Cluster() | |
s = c.connect("test") | |
stmt = SimpleStatement("create table test2 ( id int primary key, v int )") | |
s.execute(stmt, trace=True) | |
trace = stmt.trace |
This file contains 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
trait ConvertToInt { | |
fn to_int(&self) -> Option<i64>; | |
} | |
impl ConvertToInt for String { | |
fn to_int(&self) -> Option<i64> { | |
let buf = self.as_slice(); | |
let result: Option<i64> = from_str(buf); | |
return result | |
} |
This file contains 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
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/htmlconverte |
This file contains 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
jhaddad@Jons-Mac-Pro ~/dev/cql-ffi$ cargo build master | |
Compiling cql_ffi v0.0.5 (file:///Users/jhaddad/dev/cql-ffi) | |
error: linking with `cc` failed: exit code: 1 | |
note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/jhaddad/dev/cql-ffi/target/batch' '/Users/jhaddad/dev/cql-ffi/target/batch.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-Wl,-dead_strip' '-nodefaultlibs' '/Users/jhaddad/dev/cql-ffi/target/libcql_ffi-f2ab9486e3b15b25.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/ |
This file contains 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
struct Vertex { | |
id: i32, | |
} | |
impl Vertex { | |
fn test(&mut self, num:i32) { | |
self.id = num; | |
} | |
} |
This file contains 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
Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe. | |
: java.lang.NoSuchMethodError: com.datastax.driver.core.Metadata.getTokenRanges()Ljava/util/Set; | |
at com.datastax.spark.connector.rdd.partitioner.CassandraRDDPartitioner$$anonfun$com$datastax$spark$connector$rdd$partitioner$CassandraRDDPartitioner$$describeRing$1.apply(CassandraRDDPartitioner.scala:41) | |
at com.datastax.spark.connector.rdd.partitioner.CassandraRDDPartitioner$$anonfun$com$datastax$spark$connector$rdd$partitioner$CassandraRDDPartitioner$$describeRing$1.apply(CassandraRDDPartitioner.scala:39) | |
at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withClusterDo$1.apply(CassandraConnector.scala:111) | |
at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withClusterDo$1.apply(CassandraConnector.scala:110) | |
at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withSessionDo$1.apply(CassandraConnector.scala:100) | |
at com.datastax.spark.connector.cql.CassandraConnector$$a |
OlderNewer