- Install DSE
- In the cassandra.yml file, ensure the datacenter and cluster match your analytics datacenter
- In the cassandra-env.sh file add this configuration line toward the bottom
JVM_OPTS="$JVM_OPTS -Dcassandra.join_ring=false"This will make your DSE node a coordinator only, it will not own any data. You can use this node to submit jobs to DSE locally without the need to know which is the master node. - start DSE
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
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import json | |
| import logging | |
| from urllib2 import Request, urlopen, URLError, HTTPError | |
| from base64 import b64decode |
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
| import boto.ec2 | |
| def get_running_instances(region): | |
| ec2 = boto.ec2.connect_to_region(region) | |
| instances = [i for r in ec2.get_all_reservations() for i in r.instances] | |
| return filter(lambda i: i.state == 'running', instances) | |
| def get_reserved_instances(region): | |
| ec2 = boto.ec2.connect_to_region(region) | |
| reserved_instances = ec2.get_all_reserved_instances() |
OlderNewer