Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在安装zookeeper的过程中一直卡在一个地方 #136

Open
KONEONE opened this issue Jan 19, 2024 · 5 comments
Open

在安装zookeeper的过程中一直卡在一个地方 #136

KONEONE opened this issue Jan 19, 2024 · 5 comments
Labels
question Further information is requested

Comments

@KONEONE
Copy link

KONEONE commented Jan 19, 2024

Question

Before asking a question, make sure you have(在提问之前,请确保你已经):

  • Read documentation(仔细阅读了官方文档)
  • Googled your question(百度搜索了你的问题)
  • Searched open and closed GitHub issues(搜索了开放和关闭的 GitHub issues)

Please pay attention on issues you submitted, because we maybe need more details.

一直卡在这里:

StartRoleK8sDeploymentTask 144: 在k8s上启动deployment: zookeeper-server-zookeeper ,使用本地资源文件: /home/kone/software/work_env/cloudeon/cloudeon/work/k8s-resource/zookeeper/zookeeper-server.yaml ,持续等待 20 分钟
@KONEONE KONEONE added the question Further information is requested label Jan 19, 2024
@KONEONE
Copy link
Author

KONEONE commented Jan 19, 2024

成功报错:

2024-01-19 14:17:48,224 INFO o.d.c.p.StartRoleK8sDeploymentTask 127: 完成角色k8s资源文件生成:/home/kone/software/work_env/cloudeon/cloudeon/work/k8s-resource/zookeeper/zookeeper-server.yaml
2024-01-19 14:17:48,372 INFO o.d.c.p.StartRoleK8sDeploymentTask 144: 在k8s上启动deployment: zookeeper-server-zookeeper ,使用本地资源文件: /home/kone/software/work_env/cloudeon/cloudeon/work/k8s-resource/zookeeper/zookeeper-server.yaml ,持续等待 20 分钟
2024-01-19 14:37:48,462 ERROR o.d.c.p.StartRoleK8sDeploymentTask 113: CommandTask:334发生异常,处理异常。。。Timed out waiting for [1200000] milliseconds for [Deployment] with name:[zookeeper-server-zookeeper] in namespace [default].
io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [1200000] milliseconds for [Deployment] with name:[zookeeper-server-zookeeper] in namespace [default].
	at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.waitUntilCondition(BaseOperation.java:891)
	at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.waitUntilReady(BaseOperation.java:875)
	at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.waitUntilReady(BaseOperation.java:93)
	at org.dromara.cloudeon.processor.StartRoleK8sDeploymentTask.internalExecute(StartRoleK8sDeploymentTask.java:145)
	at org.dromara.cloudeon.processor.BaseCloudeonTask.run(BaseCloudeonTask.java:79)
	at java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:719)
	at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:701)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:457)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)

@KONEONE
Copy link
Author

KONEONE commented Jan 19, 2024

解决办法

这是我的解决办法
在我的所有节点中(包括master节点)的/etc/hosts的DNS映射文件中包含如下的地址映射

127.0.1.1 your_host_name your_host_name

我把它修改为如下,就解决了这个问题

127.0.1.1

感谢,这位群友:
image

@seedsunrise1
Copy link

解决办法

这是我的解决办法 在我的所有节点中(包括master节点)的/etc/hosts的DNS映射文件中包含如下的地址映射

127.0.1.1 your_host_name your_host_name

我把它修改为如下,就解决了这个问题

127.0.1.1

感谢,这位群友: image

127.0.1.1? 127.0.1.1 your_host_name your_host_name ? 难道不是127.0.0.1吗

@MuziMin0222
Copy link

image image

这是我的排查过程,发现master节点是不可以被调度的,所以我将zk替换成三台从节点,zk服务成功

@xlostpath
Copy link

xlostpath commented May 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants