簡體   English   中英

使用 AWS powershell 工具中的 UpdateCrawler 時更新爬蟲錯誤

[英]Error Update Crawler when using UpdateCrawler from AWS powershell tools

我試圖從 powershell 腳本更新 Glue Crawler。 但似乎 AWS 不喜歡這個名字,盡管爬蟲名稱是由 AWS Data Lake Formation!創建的Data Lake Formation!

我只想更新包含路徑,沒有其他爬蟲,所以我假設下面的 JSON 請求沒問題,知道為什么我會收到錯誤嗎?

    # Update Source Schema Discoverer Crawler.
    $crawlername = 'wf_db_snapshot_discoverer_286ef141'
    $includePath = "$($Config.DbName)/dbo/%"

$crawlerUpdateReq = @"
{
   "Name": "$crawlername",
   "Targets": { 
      "JdbcTargets": [ 
         { 
            "Path": "$includePath"
         }
      ]
   }
}
"@

$crawlerUpdateResp = Update-GLUECrawler $crawlerUpdateReq

日志

Updating Crawler...
1 validation error detected: Value '{
   "Name": "wf_db_snapshot_discoverer_286ef141",
   "Targets": {
      "JdbcTargets": [
         {
            "Path": "DB_029/dbo/%"
         }
      ]
   }
}' at 'name' failed to satisfy constraint: Member must satisfy regular expression pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*
1 validation error detected: Value '{
   "Name": "wf_db_snapshot_discoverer_286ef141",
   "Targets": {
      "JdbcTargets": [
         {
            "Path": "DB_029/dbo/%"
         }
      ]
   }
}' at 'name' failed to satisfy constraint: Member must satisfy regular expression pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*
The remote server returned an error: (400) Bad Request.
The remote server returned an error: (400) Bad Request.

正則表達式模式: [\ -\퟿\-\�\?\?-\?\?\\t]*不允許您添加new line 在發送到 API 端點之前,需要縮小JSON。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM