简体   繁体   English

使用 AWS powershell 工具中的 UpdateCrawler 时更新爬虫错误

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

I was trying to update the Glue Crawler from a powershell script.我试图从 powershell 脚本更新 Glue Crawler。 But it seems AWS dont like the name, eventhough the crawler name was created by the AWS Data Lake Formation!但似乎 AWS 不喜欢这个名字,尽管爬虫名称是由 AWS Data Lake Formation!创建的Data Lake Formation!

I want to update only the include path, nothing else one that crawler, so i assume the below JSON request is ok, any idea why i'm getting the error?我只想更新包含路径,没有其他爬虫,所以我假设下面的 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

Log日志

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.

The regular expression pattern: [\ -\퟿\-\�\?\?-\?\?\\t]* does not allow you to add new line characters.正则表达式模式: [\ -\퟿\-\�\?\?-\?\?\\t]*不允许您添加new line The JSON needs to be minified before sending to the API endpoint.在发送到 API 端点之前,需要缩小JSON。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Powershell从网站使用DownloadString时出错 - Error when using DownloadString from a website using powershell 使用加载的程序集时Powershell错误 - Powershell error when using loaded assembly 使用Windows Azure SDK 1.8和Windows Azure工具打包云项目时出错,2012年10月 - Error when packaging cloud project using Windows Azure SDK 1.8 and Windows Azure Tools October 2012 使用适用于.NET的AWS开发工具包分配弹性IP - Allocating an elastic IP using AWS SDK tools for .NET 当使用Powershell.Invoke()调用的Powershell脚本执行中发生终止错误时,如何避免.NET exe崩溃 - How to avoid crash of a .NET exe when a termination error occurred in powershell script execution that has invoked using Powershell.Invoke() 在 Powershell 中使用 System.IO.FileStream.WriteByte() 时文件中出现意外字符 - Unexpected characters in file when using System.IO.FileStream.WriteByte() from within Powershell 使用 C# 执行 Powershell 命令行开关时出错 - Error executing Powershell commandlets using C# 仅当文件存在时,才在 PowerShell 中使用 WinSCP 从 SFTP 服务器从阵列下载文件 - Download files from an array from SFTP server using WinSCP in PowerShell only when the files exist 数据库位置更改时如何更新.edmx文件(实体数据模型工具) - How to update an .edmx File when the Database Location Changes (Entity Data Model Tools) 使用Powershell从SQLDataReader批量加载DataTable - Load a DataTable from a SQLDataReader in batches using Powershell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM