加载中

错误:提供了额外的参数

症状

  • elasticsearch-users 命令失败,并显示以下消息:ERROR: extra arguments [...] were provided

解决方法

elasticsearch-users 工具在解析输入并发现意外参数时,会出现此错误。当某些参数中使用了特殊字符时,可能会发生这种情况。例如,在 Windows 系统上,, 字符被视为参数分隔符;换句话说,-r role1,role2 会被转换为 -r role1 role2,而 elasticsearch-users 工具仅将 role1 识别为预期参数。这里的解决方法是为参数加上引号:-r "role1,role2"

有关此命令的更多信息,请参阅 elasticsearch-users 命令

© . This website operates independently and is not affiliated with or endorsed by Elasticsearch B.V. All brand names, logos, and trademarks are the property of their respective owners.