我创建了 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) 我正在使用 VS-Code 和 anaconda 环境作为 python 解释器。我通过ctrl + shift + `选择准确的 anaconda 基础环境,它也反映在 vscode 的下侧面板中。但是,当我检查 python 版本时,它显示我系统的默认 python 环境 3.7.9。如果您看到下面的屏幕截图,则anaconda 环境为 3.8.3。
我正在研究 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)
那么,它会解决,“|”和'|有什么区别?'在逻辑级别。
amazon-eks ×1
anaconda ×1
apache-spark ×1
aws-config ×1
kubernetes ×1
logic ×1
python ×1
python-3.7 ×1
scala ×1