[英]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.