Module Import alias alias alias alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore ListLoad Dict Str Str Str ListLoad Str Dict Str Str Str ListLoad Call NameLoad Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad For NameStore NameLoad body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Print Str Assign NameStore Num For NameStore NameLoad body Assign NameStore ListLoad With Call NameLoad Str Str NameStore body With Call NameLoad Str Str NameStore body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad Str attr BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad AugAssignAdd NameStore Num For NameStore NameLoad body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension NameStore NameLoad For NameStore NameLoad body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Print Str For NameStore NameLoad body Assign NameStore ListLoad With Call NameLoad Str Str NameStore body With Call NameLoad Str Str NameStore body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp Call AttributeLoad Str attr SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListLoad Call AttributeLoad Str attr ListComp BinOpAdd Num NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call NameLoad Str For NameStore NameLoad body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Print Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Print Call AttributeLoad Str attr ListComp BinOpAdd Str NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad For NameStore NameLoad body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Print Str With Call NameLoad Str Str NameStore body With Call NameLoad Str Str NameStore body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension NameStore NameLoad For NameStore NameLoad body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad
N/A N/A boto3 os argparse sys N/A N/A N/A N/A sys path append .. botocore.exceptions ClientError BotoClientError time sleep create_clusters get_tag keyfile config_utils quiet_wrap N/A my_instances_filters N/A N/A Name Values instance-state-name N/A running N/A Name Values tag-value N/A N/A get_tag storm-node N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser description Configure the storm cluster. N/A N/A N/A parser add_argument --elasticsearch help Collocate elasticsearch with Storm cluster. action store_true N/A args N/A N/A parser parse_args N/A ec2 N/A N/A boto3 resource ec2 N/A hosts N/A N/A private_ips N/A N/A reservations N/A N/A N/A ec2 instances filter Filters my_instances_filters N/A instance reservations N/A N/A N/A N/A ID: {0:<15}	IP: {1:<15} format N/A instance instance_id N/A instance public_ip_address N/A N/A N/A hosts append N/A instance public_ip_address N/A N/A N/A private_ips append N/A instance private_ip_address N/A N/A N/A len hosts N/A len private_ips N/A N/A N/A RuntimeError Host and private ips not consistent! N/A N/A N/A len hosts 0 N/A N/A N/A RuntimeError No hosts found. N/A Starting zookeeper configuration... N/A zooid 1 N/A h hosts N/A N/A cmd_str N/A N/A N/A open templates/zoo.cfg.tmp w tmpfile N/A N/A N/A open templates/zoo.cfg r f N/A N/A l f N/A N/A N/A N/A tmpfile write l N/A host_strings N/A N/A N/A server.{0}={1}:2888:3888 format N/A i 1 N/A private_ips N/A i N/A i N/A range N/A len hosts N/A s host_strings N/A N/A N/A N/A tmpfile write N/A s N/A N/A N/A cmd_str append N/A N/A scp -i {0} {1} ubuntu@{2}:zoo.cfg format keyfile N/A tmpfile name h N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} sudo mv zoo.cfg /etc/zookeeper/conf/zoo.cfg format keyfile h N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} " echo 'echo {2} > /var/lib/zookeeper/myid' | sudo -s"  format keyfile h zooid N/A zooid 1 N/A cmd cmd_str N/A N/A cmd N/A res N/A N/A os system cmd N/A N/A res 0 N/A N/A N/A RuntimeError N/A N/A Something went wrong executing {0}  Got exit: {1} format cmd res N/A cmd_str N/A N/A N/A ssh -i {0} ubuntu@{1} sudo service zookeeper restart format keyfile h N/A h hosts N/A cmd cmd_str N/A N/A cmd N/A res N/A N/A os system cmd N/A N/A res 0 N/A N/A N/A RuntimeError N/A N/A Something went wrong executing {0}  Got exit: {1} format cmd res N/A Starting Storm configuration... N/A h hosts N/A N/A cmd_str N/A N/A N/A open templates/storm.yaml.tmp w tmpfile N/A N/A N/A open templates/storm.yaml.tmp r f N/A N/A l f N/A N/A N/A N/A tmpfile write l N/A N/A N/A tmpfile write storm.zookeeper.servers:
 N/A host_strings N/A N/A N/A     - "{0}"
 format N/A private_ips N/A i N/A i N/A range N/A len hosts N/A v host_strings N/A N/A N/A N/A tmpfile write v N/A N/A N/A tmpfile write N/A N/A nimbus.host: "{0}"
 format N/A private_ips N/A 0 N/A N/A N/A tmpfile write storm.local.dir: "/usr/local/storm/local_state"
 N/A N/A N/A tmpfile write supervisor.slots.ports:
 N/A N/A N/A tmpfile write N/A N/A join N/A N/A N/A     -{0}
 format N/A N/A 6700 i N/A i N/A range N/A len hosts N/A N/A N/A cmd_str append N/A N/A scp -i {0} {1} ubuntu@{2}:storm.yaml format keyfile N/A tmpfile name h N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} sudo mv storm.yaml /usr/local/storm/conf/storm.yaml format keyfile h N/A N/A h N/A hosts N/A 0 N/A N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} "{2}" format keyfile h N/A quiet_wrap sudo /usr/local/storm/bin/storm nimbus N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} "{2}" format keyfile h N/A quiet_wrap sudo /usr/local/storm/bin/storm ui N/A N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} "{2}" format keyfile h N/A quiet_wrap sudo /usr/local/storm/bin/storm supervisor N/A cmd cmd_str N/A N/A cmd N/A res N/A N/A os system cmd N/A N/A res 0 N/A N/A N/A RuntimeError N/A N/A Something went wrong executing {0}  Got exit: {1} format cmd res N/A N/A N/A Master: {0} format N/A hosts N/A 0 N/A N/A N/A join N/A N/A Worker:  h N/A h N/A hosts N/A 1 N/A N/A N/A args elasticsearch True N/A N/A cmd_str N/A N/A h hosts N/A N/A N/A N/A cmd_str append N/A N/A scp -i {0} {1} ubuntu@{2}: format keyfile ../host_install_scripts/elasticsearch_install.sh h N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} sudo ./elasticsearch_install.sh format keyfile h N/A cmd cmd_str N/A N/A cmd N/A res N/A N/A os system cmd N/A N/A res 0 N/A N/A N/A RuntimeError N/A N/A Something went wrong executing {0}  Got exit: {1} format cmd res N/A Starting elasticsearch configuration... N/A N/A open templates/elasticsearch.yml.tmp w tmpfile N/A N/A N/A open templates/elasticsearch.yml r f N/A N/A l f N/A N/A N/A N/A tmpfile write l N/A S N/A N/A boto3 _get_default_session N/A profile N/A N/A N/A N/A S _session full_config N/A profiles N/A default N/A N/A N/A tmpfile write N/A N/A cloud.aws.access_key: {0}
 format N/A profile N/A aws_access_key_id N/A N/A N/A tmpfile write N/A N/A cloud.aws.secret_key: {0}
 format N/A profile N/A aws_secret_access_key N/A N/A N/A tmpfile write N/A N/A cloud.aws.region: {0}
 format N/A profile N/A region N/A N/A N/A tmpfile write discovery.type: ec2
 N/A N/A N/A tmpfile write N/A N/A discovery.ec2.groups: {0}
 format N/A get_tag elasticsearch-security-group N/A N/A N/A tmpfile write N/A N/A cluster.name: {0}
 format N/A get_tag elasticsearch-cluster N/A cmd_str N/A N/A h hosts N/A N/A N/A N/A cmd_str append N/A N/A scp -i {0} {1} ubuntu@{2}:elasticsearch.yml format keyfile N/A tmpfile name h N/A N/A N/A cmd_str append N/A N/A ssh -i {0} ubuntu@{1} sudo mv elasticsearch.yml /etc/elasticsearch/elasticsearch.yml format keyfile h N/A N/A N/A cmd_str extend N/A N/A N/A ssh -i {0} ubuntu@{1} "sudo service elasticsearch start" format keyfile h N/A h hosts N/A cmd cmd_str N/A N/A cmd N/A res N/A N/A os system cmd N/A N/A res 0 N/A N/A N/A RuntimeError N/A N/A Something went wrong executing {0}  Got exit: {1} format cmd res