小编ved*_*ave的帖子

无法获取当前服务器 API 组列表:服务器已要求客户端提供凭据错误:您必须登录到服务器

我创建了 eks 集群,尝试将其与本地 cli 连接,为此,我安装了 aws-cli 并提供了正确的“aws configure”凭据。我用来连接 aws 的用户具有 EKS 相关策略。我仍然收到以下错误...

E0209 21:09:44.893284 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:45.571635 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:46.380542 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:47.105407 2465691 memcache.go:238] couldn't …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services kubernetes amazon-eks aws-config

22
推荐指数
1
解决办法
8万
查看次数

VS Code 不改变 python 环境

我正在使用 VS-Code 和 anaconda 环境作为 python 解释器。我通过ctrl + shift + `选择准确的 anaconda 基础环境,它也反映在 vscode 的下侧面板中。但是,当我检查 python 版本时,它显示我系统的默认 python 环境 3.7.9。如果您看到下面的屏幕截图,则anaconda 环境为 3.8.3

请给我解决方案,在此输入图像描述谢谢。

python anaconda visual-studio-code python-3.7

6
推荐指数
2
解决办法
2万
查看次数

将“*”和“*”参数传递给 split 的区别

我正在研究 spark - scala 并在 scala 中找到它。拆分与python不同。举个例子:

我的功能:

for (line <- lines) {
  var fields = line.split("|")
  if(fields.length > 1){
    movieNames += (fields(0).toInt -> fields(1))
  }
Run Code Online (Sandbox Code Playgroud)

给了我一个错误但是当我将其更改为...

for (line <- lines) {
  var fields = line.split('|')
  if(fields.length > 1){
    movieNames += (fields(0).toInt -> fields(1))
  }
Run Code Online (Sandbox Code Playgroud)

那么,它会解决,“|”和'|有什么区别?'在逻辑级别

logic scala apache-spark

1
推荐指数
1
解决办法
46
查看次数