

# 问题排查
<a name="security-lf-troubleshooting"></a>

有关故障排除解决方案，请参阅以下部分：

## 日志记录
<a name="security-lf-troubleshooting-logging"></a>

AWS Glue 使用 Spark 资源配置文件来拆分作业执行。AWSGlue 使用用户配置文件来运行您提供的代码，而系统配置文件则强制执行 Lake Formation 策略。您可以访问作为用户配置文件运行的任务的日志。

## Live UI 和 Spark History Server
<a name="security-lf-troubleshooting-live-ui"></a>

Live UI 和 Spark History Server 包含从用户配置文件生成的所有 Spark 事件以及从系统驱动程序生成的编辑事件。

您可以在**执行程序**选项卡中查看用户和系统驱动程序中的所有任务。但日志链接仅适用于用户配置文件。此外，还会从 Live UI 中编辑一些信息，例如输出记录数。

## 由于 Lake Formation 权限不足，作业失败
<a name="security-lf-troubleshooting-insufficient-lf-permissions"></a>

确保您的作业运行时角色有权在您要访问的表上运行 SELECT 和 DESCRIBE。

## RDD 作业执行失败
<a name="security-lf-troubleshooting-rdd-execution"></a>

AWS Glue 目前不支持在启用了 Lake Formation 的作业上进行弹性分布式数据集 (RDD) 操作。

## 无法访问 Amazon S3 中的数据文件
<a name="security-lf-troubleshooting-s3-access-failure"></a>

确保您已在 Lake Formation 中注册数据湖的位置。

## 安全验证异常
<a name="security-lf-troubleshooting-security-validation"></a>

AWS Glue 检测到安全验证错误。请联系 AWS 支持寻求帮助。

## 跨账户共享 AWS Glue Data Catalog 和表
<a name="security-lf-troubleshooting-cross-account"></a>

您可以跨账户共享数据库和表，且仍可使用 Lake Formation。有关更多信息，请参阅 [Cross-account data sharing in Lake Formation](https://docs.aws.amazon.com/lake-formation/latest/dg/cross-account-permissions.html) 和 [How do I share AWS Glue Data Catalog and tables cross-account using ?](https://repost.aws/knowledge-center/glue-lake-formation-cross-account)。