AWS Glue的数据目录存储在Amazon Simple Storage Service(S3)中。您可以使用以下代码示例来获取数据目录的位置:
import boto3
glue_client = boto3.client('glue')
response = glue_client.get_database(
Name='your-database-name'
)
data_location = response['Database']['LocationUri']
print(data_location)
请替换your-database-name
为您的数据库名称。运行以上代码将打印出数据目录的位置。