我无法理解@Resource注释的含义。我查看了在线资源,但它们似乎以难以理解的方式解释了相同的内容。@Resource如果可能的话,有人可以以简单的方式解释 的含义吗?
谢谢 !
我在 Ubuntu 17.10 上使用以下命令安装 OpenMPI:
sudo apt-get install openmpi-bin openmpi-common openssh-client openssh-server libopenmpi1.3 libopenmpi-dbg libopenmpi-dev.
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误:
E: Unable to locate package libopenmpi1.3
Run Code Online (Sandbox Code Playgroud)
我想知道如何解决这个问题。或者,如果有人知道另一种方法,我愿意以不同的方式安装 openmpi。
我在网上搜索过,大多数链接似乎都提到了清单,而没有实际解释它们是什么。如果有人可以向我解释基础知识,我将不胜感激。
我指的是以下链接在 Ubuntu 18.04 上安装 Kubernetes 的安装链接。我在输入命令时收到以下错误:
sudo kubeadm join 192.168.0.114:6443 --token qgce4f.tgzda1zemqnro1em --discovery-token-ca-cert-hash sha256:6ebc15a5a9818481f8a98af01a7a367ba93b2180babb954940edd8178548773a ignore-preflight-errors=All
W0303 18:33:39.565868 7098 join.go:185] [join] WARNING: More than one API server endpoint supplied on command line [192.168.0.114:6443 ignore-preflight-errors=All]. Using the first one.
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 18.09.3. Latest validated version: 18.06
[preflight] Some fatal errors occurred:
[ERROR DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
[ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[ERROR Port-10250]: Port …Run Code Online (Sandbox Code Playgroud) 我尝试通过链接https://github.com/kubernetes/sample-controller运行 Kubernetes 示例控制器示例。我在 Ubuntu 18.04 系统上设置了存储库,并且能够构建示例控制器包。但是,当我尝试运行 go 包时,出现一些错误并且无法调试问题。有人可以帮我解决这个问题吗?
以下是我遵循的步骤:
user@ubuntu-user:~$ go get k8s.io/sample-controller
user@ubuntu-user:~$ cd $GOPATH/src/k8s.io/sample-controller
Run Code Online (Sandbox Code Playgroud)
这是我在运行控制器时遇到的错误:
user@ubuntu-user:~/go/src/k8s.io/sample-controller$ ./sample-controller -kubeconfig=$HOME/.kube/config
E0426 15:05:57.721696 31517 reflector.go:125] k8s.io/sample-controller/pkg/generated/informers/externalversions/factory.go:117: Failed to list *v1alpha1.Foo: the server could not find the requested resource (get foos.samplecontroller.k8s.io)
Run Code Online (Sandbox Code Playgroud)
Kubectl版本:
user@ubuntu-user:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"```
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Kubernetes 的 C# 客户端定义部署规范。我的规范字段的值是由其他一些应用程序生成的。因此,部署有时会失败,并且出现Unprocessable entity(Microsoft.Rest.HttpOperationException) 错误。然而,很难确定哪个字段导致了无法处理的实体错误。
有人可以告诉我如何识别错误的字段吗?
这是跟踪:
Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'UnprocessableEntity'
at k8s.Kubernetes.CreateNamespacedDeploymentWithHttpMessagesAsync(V1Deployment body, String namespaceParameter, String dryRun, String fieldManager, String pretty, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at k8s.KubernetesExtensions.CreateNamespacedDeploymentAsync(IKubernetes operations, V1Deployment body, String namespaceParameter, String dryRun, String fieldManager, String pretty, CancellationToken cancellationToken)
at k8s.KubernetesExtensions.CreateNamespacedDeployment(IKubernetes operations, V1Deployment body, String namespaceParameter, String dryRun, String fieldManager, String pretty)
Run Code Online (Sandbox Code Playgroud) kubernetes ×4
.net ×1
annotations ×1
installation ×1
java ×1
kubeadm ×1
linux ×1
openmpi ×1
package ×1
ubuntu-17.10 ×1
ubuntu-18.04 ×1