title: How to list all databases and tables in AWS Glue Catalog?
body: <p>I created a Development Endpoint in the AWS Glue console and now I have access to SparkContext and SQLContext in gluepyspark console.</p>
  
  <p>How can I access the catalog and list all databases and tables? The usual <code>sqlContext.sql("show tables").show()</code> does not work. </p>
  
  <p>What might help is the <a href="http://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-catalog-connection.html" rel="noreferrer">CatalogConnection Class</a> but I have no idea in which package it is. I tried importing from awsglue.context and no success.</p>