只是在这里寻找一些说明我有一个 2 节点 etcd 集群:
master01=http://10.1.1.21:2379,master02=http://10.1.1.22:2379
Run Code Online (Sandbox Code Playgroud)
一切运行良好。如果我登录 master01 并执行以下操作:
etcdctl --cluster=true endpoint health
Run Code Online (Sandbox Code Playgroud)
我得到了很好的回应:
http://10.1.1.21:2379 is healthy: successfully committed proposal: took = 25.628392ms
http://10.1.1.22:2379 is healthy: successfully committed proposal: took = 42.98645ms
Run Code Online (Sandbox Code Playgroud)
所有操作 get、put 都按预期运行。
ETCDCTL_API=3 etcdctl --endpoints=http://10.1.1.21:2379,http://10.1.1.22:2379 get date
Run Code Online (Sandbox Code Playgroud)
当我删除其中一个节点时,问题就开始了,因此,如果我杀死一个节点,我现在会收到错误而不是结果,例如:
ETCDCTL_API=3 etcdctl --endpoints=http://10.1.1.21:2379,http://10.1.1.22:2379 get date
{"level":"warn","ts":"2021-09-09T08:58:22.175Z","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0000e0a80/#initially=[http://10.1.1.21:2379;http://10.1.1.22:2379]","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
Error: context deadline exceeded
Run Code Online (Sandbox Code Playgroud)
在这种情况下,我杀死了master01,我做错了什么吗?
我有一个Spring Batch作业现在给我一个错误:无法序列化类型的对象:class org.springframework.batch.core.StepExecution Job Listener正在打印以下异常:
org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly
at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:140) ~[FlowJob.class:3.0.6.RELEASE]
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306) ~[AbstractJob.class:3.0.6.RELEASE]
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135) [SimpleJobLauncher$1.class:3.0.6.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_51]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
Run Code Online (Sandbox Code Playgroud)
配置如下:
<job id="job2" restartable="false" job-repository="jobRepository" parent="baseJob">
<step id="job2StepBootstrap" parent="parentJobStep">
<tasklet ref="job2TaskBootstrap" transaction-manager="jobsTransactionManager" />
</step>
<listeners>
<listener ref="job2JobListener"/>
</listeners>
Run Code Online (Sandbox Code Playgroud)
更多
<bean id="jobsTransactionManager"
class="org.springframework.batch.support.transaction.ResourcelessTransactionManager" />
<bean id="jobRepository"
class="org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean">
<property name="transactionManager" ref="jobsTransactionManager" />
<property name="isolationLevelForCreate" value="ISOLATION_SERIALIZABLE" />
<property name="validateTransactionState" value="false"/>
Run Code Online (Sandbox Code Playgroud)
对我来说不是很明显有什么不对,我非常感谢你的帮助.我根本不想保存作业元数据.
public class BatchDeploymentTaskBootstrap implements Tasklet, Serializable{
@Override
public …
Run Code Online (Sandbox Code Playgroud) 我刚刚在这里碰壁了。尝试像所有人一样安装 WordPress,我下载了MySql 8.XX
最新版本的 wordpress 和最新版本的PHP 7.xxx
.
现在我似乎无法设置它。我正进入(状态
The server requested authentication method unknown to the client
Run Code Online (Sandbox Code Playgroud)
错误。当我查看这个论坛上的一些问题和答案时,有些人建议我添加
old_passwords=1
Run Code Online (Sandbox Code Playgroud)
到mysqldefaults.ini
文件。我这样做我的服务不会启动。我曾尝试将用户密码更改为安全密码,经过数小时的尝试,我还发现即使我输入了错误的密码,我仍然遇到相同的错误...
有人能帮帮我吗...
etcd ×1
etcdctl ×1
java ×1
kubernetes ×1
mysql ×1
php-7 ×1
spring ×1
spring-batch ×1
wordpress ×1