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
# -*- coding: utf-8 -*- | |
import os | |
import uuid | |
import time | |
import cassandra | |
from cassandra import cluster as cassandra_cluster | |
#from cassandra.io.geventreactor import GeventConnection |
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
# -*- coding: utf-8 -*- | |
import os | |
import uuid | |
import time | |
import dse | |
from dse import cluster as cassandra_cluster | |
#from dse.io.geventreactor import GeventConnection |
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
# -*- coding: utf-8 -*- | |
import os | |
import uuid | |
import time | |
import dse | |
from dse import cluster as cassandra_cluster | |
#from dse.io.geventreactor import GeventConnection |
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
# -*- coding: utf-8 -*- | |
import os | |
import uuid | |
import time | |
import dse | |
from dse import cluster as cassandra_cluster | |
#from dse.io.geventreactor import GeventConnection |
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
# -*- coding: utf-8 -*- | |
import os | |
import uuid | |
import time | |
import cassandra | |
from cassandra.io.libevreactor import LibevConnection | |
from cassandra.cluster import Cluster |
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
import logging | |
from dse_graph import DseGraph | |
from dse.cluster import Cluster, EXEC_PROFILE_GRAPH_DEFAULT, EXEC_PROFILE_GRAPH_ANALYTICS_DEFAULT | |
log = logging.getLogger() | |
log.setLevel('DEBUG') | |
handler = logging.StreamHandler() | |
handler.setFormatter(logging.Formatter("%(asctime)s [%(levelname)s] %(name)s: %(message)s")) | |
log.addHandler(handler) |
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 | |
import logging | |
log = logging.getLogger() | |
log.setLevel('INFO') | |
handler = logging.StreamHandler() | |
handler.setFormatter(logging.Formatter("%(asctime)s [%(levelname)s] %(name)s: %(message)s")) | |
log.addHandler(handler) |
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 import cluster as cassandra_cluster | |
from cassandra.concurrent import execute_concurrent | |
from itertools import cycle | |
from threading import Event | |
import logging | |
log = logging.getLogger() | |
log.setLevel('ERROR') | |
handler = logging.StreamHandler() |
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.io.eventletreactor import EventletConnection | |
from cassandra.io.geventreactor import GeventConnection | |
from cassandra.io.libevreactor import LibevConnection | |
from cassandra.io.asyncorereactor import AsyncoreConnection | |
connection_class = AsyncoreConnection | |
if connection_class == EventletConnection: | |
from eventlet import monkey_patch | |
monkey_patch() |
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.io.eventletreactor import EventletConnection | |
from cassandra.io.geventreactor import GeventConnection | |
from cassandra.io.libevreactor import LibevConnection | |
from cassandra.io.asyncorereactor import AsyncoreConnection | |
connection_class = LibevConnection | |
if connection_class == EventletConnection: | |
from eventlet import monkey_patch | |
monkey_patch() |
OlderNewer