curl 命令(macOS / Linux 默认自带)。curl https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.sh | sudo sh
curl.exe -fsSL https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.bat -o install.bat && install.bat
databuddy -v
DataBuddy CLI <版本号>https://databuddy.cloud.tencent.com/workbench?o=<workspace_id>&r=<region_id>。其中 o 为 Workspace ID,r 为地域 ID,均由控制台自动生成,无需手动拼接。o= 参数(Workspace ID),否则登录失败并提示 workspace id is empty, 'o' param not found in URL。databuddy auth login
DEFAULT)。Verification Success
~/.databuddycfg 中,其中的配置名称即后续命令 -p 参数要用的 Profile 名称。databuddy auth login --host "<workspace-url>"。地址必须用双引号包裹——使用单引号会导致 URL 解析失败,不加引号会导致身份验证失败。databuddy bundle init -p <profile>
-p <profile> 指定步骤 2 中登录使用的 Profile 名称,后续所有命令均需携带此参数。~/.databuddycfg 中的配置名称完全一致(区分大小写),默认配置名为 DEFAULT。名称不匹配会提示 profile <name> not found in file。SQL:适用于 SQL 数据开发任务。NoteBook:适用于交互式数据分析与探索。Minimal:空项目骨架,适合自定义场景。yiwu_etl。yiwu_etl/├── databuddy.yml # Bundle 主配置文件├── src/ # 代码文件│ └── sql_example.sql├── resources/ # 资源定义 YAML│ └── workflow/│ └── sql_example.yml└── README.md # 项目说明
src/ 下包含 .sql 示例文件,resources/workflow/ 下包含对应的任务定义 .yml 文件。src/ 下包含 .ipynb 示例文件,resources/workflow/ 下包含对应的任务定义 .yml 文件。src/、resources/ 目录和 databuddy.yml,不预置任何示例代码。cd yiwu_etldatabuddy bundle validate -t dev -p <profile>
Name: yiwu_etlTarget: devWorkspace:url: <项目链接>User: your_name@example.comPath: /Workspace/Users/your_name@example.com/.bundle/yiwu_etl/devValidation OK!
databuddy bundle deploy -t dev -p <profile>
Uploading bundle files to /Workspace/Users/your_name@example.com/.bundle/yiwu_etl/dev/files...Deploying resources...Updating deployment state...Deployment complete!
databuddy bundle run workflow example_workflow -t dev -p <profile>
task name | status | time consumingextract_data | success | 12stransform_data | success | 8sRun Summary:Number of running tasks: 2Number of successes: 2Number of failures: 0
dev_<用户名>_ 前缀。.bundle/<项目名>/dev/files/ 目录下。文档反馈