常见问题和解决方案(测试版)

测试版

Analytics 工具的历史用户活动功能目前处于测试阶段。


查看下表,了解你在升级到最新版本的 Analytics 云端 Connector CLI 期间或之后可能遇到的常见错误或意外行为的故障排除步骤和解决方案。

问题

原因

解决方案

在基于 CPDF 的表加载期间"打开的文件太多(操作系统错误 24)"

在变更数据提要(CDF)跟踪表的长时间回填期间,本机增量共享本机核心同时打开的文件描述符数量可能超过操作系统允许的数量。注意:这会影响默认限制为 256 的 MacOS 环境。

Raise the open files limit before starting the run: ulimit -n 65536.

  • macOS/Linux Shell: Add this command to your shell profile (~/.zshrc or ~/.bashrc) or to your scheduler's wrapper script.

  • Linux (systemd): Set LimitNOFILE=65536 in your systemd unit file.

  • Windows: No action needed; native OS limits are sufficient.

升级后首次运行花费的时间比平时长得多

预期的行为。管道正在处理你的历史回填数据量。

  • Monitor the Analytics Cloud Connector CLI logs.

  • The Analytics Cloud Connector CLI logs K to load partition counts; watch these numbers decrease to verify processing progress.

升级后首次运行显示的历史行比预期少

processing_log 行水印在执行前未清除,导致 Analytics 云端连接器 CLI 仅加载比旧水印更新的分区。

Check for an existing watermark by running the following query:

  • SELECT * FROM <YOUR_DB>.<YOUR_SCHEMA>.PROCESSING_LOG
    WHERE TABLE_NAME = 'user_activity';

If a row for user_activity is returned, delete that row from the table and re-run the CLI execution to force the historical backfill.

雪花"内存不足"或仓库大小太小

历史回填期间的大量历史数据超出了稳定状态仓库配置。

在回填期间暂时扩大你的 Snowplace 仓库。例如,从X-小到中或大。完成后缩减。

部分失败:加载了一些分区,然后运行出错

网络掉线或意外的运行时中断。

重新运行 CLI 脚本。它将扫描你的目标数据库,确定成功登录哪些每日分区,并在不重复数据的情况下准确从停止的地方继续。

加载期间"损坏的页脚"或 parquet 错误

包或依赖项版本不匹配,通常是由于混合自定义本地delta-sharing或pyarrow安装引起的。

确保使用准确的 Quick 版本并与新版 CLI 捆绑销售。requirements.txt。最佳解决方案是利用捆绑的虚拟环境(例如snowenv/)。

作业退出并显示非零代码,但大多数表成功

Analytics 云端 连接器 CLI 中的预期行为。现在任何单个表故障都会强制整个包裹器退出,并显示代码 1,因此调度程序可以准确检测到故障。

Review the Transfer Results summary printout at the end of the log to isolate the failing table:

  • Transfer Results:
    projects: Success (...)
    user_activity: Failed — <error>
    Job FAILED: 1 of N table(s) failed (user_activity). Exiting with code 1.

Resolve that specific table's issue, and re-run the job. Successful tables will skip ahead quickly.

找不到 processing_log 表

不适用

The location depends entirely on your connector type:

  • Snowflake: Located in the database and schema configured in your config.yaml file (the same location as your data tables).

  • SQL Server: Located in the schema configured in your config.yaml file.

  • Other Connectors: Located alongside your data files in the designated control/metadata area used by that specific connector.

Note: If it doesn't exist anywhere yet, the CLI will automatically generate it upon your first successful run.

See Also

Loading related articles...