Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Dict Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Dict Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Dict ListLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Dict ListLoad Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Dict ListLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Str Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Str Assign NameStore Dict Str Dict Str Str Str Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Dict Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str Call NameLoad Str decorator_list
N/A N/A 
Tests the coordinator module
 fabric.api env mock patch prestoadmin coordinator prestoadmin.util.exception ConfigurationError tests.base_test_case BaseTestCase TestCoordinator N/A BaseTestCase N/A test_build_all_defaults N/A N/A self N/A N/A N/A N/A N/A env roledefs N/A coordinator a N/A N/A N/A env roledefs N/A workers N/A b c N/A actual_default N/A N/A N/A N/A coordinator Coordinator build_all_defaults N/A expected N/A node.properties jvm.config config.properties N/A node.environment node.data-dir plugin.config-dir plugin.dir presto /var/lib/presto/data /etc/presto/catalog /usr/lib/presto/lib/plugin N/A -server -Xmx16G -XX:-UseBiasedLocking -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:+UseGCOverheadLimit -XX:OnOutOfMemoryError=kill -9 %p -DHADOOP_USER_NAME=hive N/A coordinator discovery-server.enabled discovery.uri http-server.http.port node-scheduler.include-coordinator query.max-memory query.max-memory-per-node true true http://a:8080 8080 false 50GB 8GB N/A N/A N/A self assertEqual actual_default expected N/A test_defaults_coord_is_worker N/A N/A self N/A N/A N/A N/A N/A env roledefs N/A coordinator N/A a N/A N/A N/A env roledefs N/A worker N/A a b c N/A actual_default N/A N/A N/A N/A coordinator Coordinator build_all_defaults N/A expected N/A node.properties jvm.config config.properties N/A node.environment node.data-dir plugin.config-dir plugin.dir presto /var/lib/presto/data /etc/presto/catalog /usr/lib/presto/lib/plugin N/A -server -Xmx16G -XX:-UseBiasedLocking -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:+UseGCOverheadLimit -XX:OnOutOfMemoryError=kill -9 %p -DHADOOP_USER_NAME=hive N/A coordinator discovery-server.enabled discovery.uri http-server.http.port node-scheduler.include-coordinator query.max-memory query.max-memory-per-node true true http://a:8080 8080 true 50GB 8GB N/A N/A N/A self assertEqual actual_default expected N/A test_validate_valid N/A N/A self N/A N/A N/A conf N/A node.properties jvm.config config.properties N/A N/A N/A coordinator discovery.uri true http://uri N/A N/A N/A self assertEqual conf N/A N/A N/A coordinator Coordinator validate conf N/A test_validate_default N/A N/A self N/A N/A N/A N/A N/A env roledefs N/A coordinator localhost N/A N/A N/A env roledefs N/A workers N/A localhost N/A conf N/A N/A N/A N/A coordinator Coordinator build_all_defaults N/A N/A N/A self assertEqual conf N/A N/A N/A coordinator Coordinator validate conf N/A test_invalid_conf N/A N/A self N/A N/A N/A conf N/A node.propoerties N/A N/A N/A N/A self assertRaisesRegexp ConfigurationError Missing configuration for required file:  N/A N/A coordinator Coordinator validate conf N/A test_invalid_conf_missing_coordinator N/A N/A self N/A N/A N/A conf N/A node.properties jvm.config config.properties N/A N/A N/A discovery.uri http://uri N/A N/A N/A self assertRaisesRegexp ConfigurationError Must specify coordinator=true in coordinator's config.properties N/A N/A coordinator Coordinator validate conf N/A test_invalid_conf_coordinator N/A N/A self N/A N/A N/A conf N/A node.properties jvm.config config.properties N/A N/A N/A coordinator discovery.uri false http://uri N/A N/A N/A self assertRaisesRegexp ConfigurationError Coordinator cannot be false in the coordinator's config.properties N/A N/A coordinator Coordinator validate conf N/A test_get_conf_empty_is_default N/A N/A self get_conf_from_file_mock write_mock N/A N/A N/A N/A N/A env roledefs N/A coordinator j N/A N/A N/A env roledefs N/A workers N/A K L N/A N/A get_conf_from_file_mock return_value N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A coordinator Coordinator get_conf N/A N/A N/A N/A coordinator Coordinator build_all_defaults N/A N/A patch prestoadmin.node.config.write_conf_to_file N/A patch prestoadmin.node.get_presto_conf test_get_conf N/A N/A self get_conf_from_file_mock write_mock N/A N/A N/A N/A N/A env roledefs N/A coordinator j N/A N/A N/A env roledefs N/A workers N/A K L N/A file_conf N/A node.properties N/A my-property node.environment value test N/A N/A get_conf_from_file_mock return_value file_conf N/A expected N/A node.properties jvm.config config.properties N/A my-property node.environment value test N/A -server -Xmx16G -XX:-UseBiasedLocking -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+HeapDumpOnOutOfMemoryError -XX:+UseGCOverheadLimit -XX:OnOutOfMemoryError=kill -9 %p -DHADOOP_USER_NAME=hive N/A coordinator discovery-server.enabled discovery.uri http-server.http.port node-scheduler.include-coordinator query.max-memory query.max-memory-per-node true true http://j:8080 8080 false 50GB 8GB N/A N/A N/A self assertEqual N/A N/A N/A N/A coordinator Coordinator get_conf expected N/A N/A patch prestoadmin.node.config.write_conf_to_file N/A patch prestoadmin.node.get_presto_conf N/A