title: Unable to access Glue tables from Presto EMR
body: <p>I've created an EMR (v 5.32) with Spark, Presto, Hadoop, Zeppelin, Hive etc.
  I enabled these:</p>
  <ol>
  <li>Use Glue metadata for Presto</li>
  <li>Use Glue metadata for Spark</li>
  </ol>
  <p>Here are the configurations visible on the EMR console:</p>
  <pre><code>[
     {
        &quot;classification&quot;:&quot;presto-connector-hive&quot;,
        &quot;properties&quot;:{
           &quot;hive.metastore.glue.datacatalog.enabled&quot;:&quot;true&quot;
        },
        &quot;configurations&quot;:[
           
        ]
     },
     {
        &quot;classification&quot;:&quot;spark-hive-site&quot;,
        &quot;properties&quot;:{
           &quot;hive.metastore.client.factory.class&quot;:&quot;com.amazonaws.glue.catalog.metastore.AWSGlueDataCatalogHiveClientFactory&quot;
        },
        &quot;configurations&quot;:[
           
        ]
     }
  ]
  </code></pre>
  <p>The datacatalog is visible in Athena, but whenever a query is run to SELECT from a table, it just times out after staying in QUEUED, 0 nodes are assigned.</p>
  <pre><code>presto:sampledb&gt; select * from presto_test_cities_test_presto limit 5;
  Query 20210120_072228_00019_xx9vu, QUEUED, 0 nodes, 0 splits   //stays on this status for few minutes
  // then times out
  Query 20210120_072228_00019_xx9vu failed: com.amazonaws.SdkClientException: Unable to execute HTTP request: Connect to glue.us-east-1.amazonaws.com:443 [glue.us-east-1.amazonaws.com/XX.XXX.XXX.XXX, glue.us-east-1.amazonaws.com/XX.ZZ.YYY.XXX, glue.us-east-1.amazonaws.com/3.XXX.XX.XX, glue.us-east-1.amazonaws.com/XX.XXX.XXX.XXX, glue.us-east-1.amazonaws.com/XX.XXX.XX.XXX, glue.us-east-1.amazonaws.com/XX.XXX.XX.XXX, glue.us-east-
  1.amazonaws.com/XX.XX.XXX.XXX, glue.us-east-1.amazonaws.com/XX.XX.XXX.XX] failed: connect timed out
  </code></pre>
  <p>What is missing here? I have used the default <code>AmazonElasticMapReduceforEC2Role</code> managed policy attached to <code>EMR_EC2_DefaultRole</code>. I tried to query the same data using Athena and it works fine.</p>