![]() ![]() Threads used to build the driver and any C extensions: $ # installing from source $ CASS_DRIVER_BUILD_CONCURRENCY =8 python setup.py install $ # installing from pip $ CASS_DRIVER_BUILD_CONCURRENCY =8 pip install cassandra-driver You can also use CASS_DRIVER_BUILD_CONCURRENCY to increase the number of In environments where performance is less important, it may be worth it to Process can take a long time – as long as 10 minutes in some environments. This makes those hot paths faster at runtime, but the Cython compilation If using a source distribution rather than a wheel, Cython is used to compile certain parts of the driver. However, the scales library is required toīy default, installing the driver through pip uses a pre-compiled, platform-specific wheel when available. The driver has built-in support for capturing trics about Just run apt-get install python-snappy.) ( Optional) Metrics Support (If using a Debian Linux derivative such as Ubuntu, it may be easier to If either isĪvailable for the driver and Cassandra also supports it, it willįor snappy support: pip install python-snappy Snappy (in Cassandra 1.2+) and LZ4 (only in Cassandra 2.0+). There are currently two supported compression algorithms: ( Optional) Compression SupportĬompression can optionally be used for communication between the driver andĬassandra. ![]() ![]() See DataStax Graph Fluent API for more details about this API. The graph requirements: pip install cassandra-driver To be able to build Gremlin traversals, you need to install The driver provides an optional fluent graph API that depends on Apache TinkerPop (gremlinpython). To check if the installation was successful, you can run: python -c 'import cassandra print cassandra._version_' The driver may need to be reinstalled if dependencies are added after the initial installation. *Note: if intending to use optional extensions, install the dependencies first. You can use pip install -pre cassandra-driver if you need to install a beta version. To install the driver*: pip install cassandra-driver It will handle installing all Python dependencies for the driver at Implementation) and PyPy are supported and tested. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |