当输出在sleep之后时,无法打印
怀疑原因是因为线程被挂起,无法继续执行,但为什么每个线程都无法被唤醒?需要看下唤醒逻辑
1 | Thread.sleep(2000); |
502错误
有可能是因为有人在进行远程调试
空指针可能情况
基本类型的值为null
原因:没有指定好配置文件,因为src/main/resources下有多个配置文件,例如application-dev.properties, boss.properties等。
(exclude = DataSourceAutoConfiguration.class)
DynamicDataSourceAutoConfiguration
1 | 21/09/08 03:17:10 WARN AbstractCoordinator [kafka-coordinator-heartbeat-thread | spark-kafka-source-babd462a-415a-413a-aeea-e55435fff762-448121830-driver-0]: [Consumer clientId=consumer-1, groupId=spark-kafka-source-babd462a-415a-413a-aeea-e55435fff762-448121830-driver-0] This member will leave the group because consumer poll timeout has expired. This means the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time processing messages. You can address this either by increasing max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records. |
1 | 21/09/06 07:15:58 WARN TaskSetManager [task-result-getter-3]: Lost task 78.0 in stage 11.0 (TID 3591, wn29-msnbi.awfbdxsze1iudhhki0l2sbzfaf.bx.internal.cloudapp.net, executor 22): org.apache.kafka.common.errors.TimeoutException: Failed to allocate memory within the configured max blocking time 60000 ms. |
1 | Cannot fetch record for offset xxx in 120000 milliseconds |
“message”: “C# error CS1061: ‘DateTime?’ does not contain a definition for ‘AddHours’ and no accessible extension method ‘AddHours’ accepting a first argument of type ‘DateTime?’ could be found (are you missing a using directive or an assembly reference?)”,
类后面有? 类似scala的Option,需要先get,获取的才是DateTime对象,然后再调用其函数
下载go安装包
修改GoPath,可以使用默认的
go env 可以查看当前配置项内容
运行代码需要在%GoPath%/src/xx 下面
当需要引入包时,执行go get -u
go mod init
go mod tiny
go build xxx.go