Caused by: java.lang.NoClassDefFoundError: io/trino/memory/QueryContext$QueryMemoryReservationHandler at io.trino.memory.QueryContext.<init>(QueryContext.java:111) at io.trino.execution.SqlTaskManager.createQueryContext(SqlTaskManager.java:196) at io.trino.execution.SqlTaskManager.lambda$new$0(SqlTaskManager.java:162) at com.google.common.cache.CacheLoader$FunctionToCacheLoader.load(CacheLoader.java:168) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045) ... 81 more
@LiteralParameters({"x", "p"}) @SqlType(StandardTypes.BIGINT) publicstaticlongdiff( @SqlType("varchar(x)") Slice unit, @SqlType("timestamp(p) with time zone")long packedEpochMillis1, @SqlType("timestamp(p) with time zone")long packedEpochMillis2) { return getTimestampField(unpackChronology(packedEpochMillis1), unit) .getDifferenceAsLong(unpackMillisUtc(packedEpochMillis2), unpackMillisUtc(packedEpochMillis1)); }
2021-11-11T12:08:30.233+0800 ERROR remote-task-callback-9651 io.trino.execution.StageStateMachine Stage 20211111_040632_02070_78b4f.2 failed java.lang.RuntimeException: org.apache.kudu.client.NonRecoverableException: cannot complete before timeout: ScanRequest(scannerId=null, tablet=de774c4553c64e2a9eb8a1f6c5e55027, attempt=75, KuduRpc(method=Scan, tablet=de774c4553c64e2a9eb8a1f6c5e55027, attempt=75, TimeoutTracker(timeout=120000, elapsed=117293), Trace Summary(48994 ms): Sent(34), Received(33), Delayed(33), MasterRefresh(0), AuthRefresh(0), Truncated: true Sent: (aeb58702b4464202a204be1537cf45ad, [ Scan, 34 ]) Received: (aeb58702b4464202a204be1537cf45ad, [ UNINITIALIZED, 33 ]) Delayed: (UNKNOWN, [ Scan, 33 ]))) at io.trino.plugin.kudu.KuduRecordCursor.advanceNextPosition(KuduRecordCursor.java:133) at io.trino.$gen.CursorProcessor_20211111_040450_1983.process(Unknown Source) at io.trino.operator.ScanFilterAndProjectOperator$RecordCursorToPages.process(ScanFilterAndProjectOperator.java:323) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221) at io.trino.operator.WorkProcessorUtils$YieldingProcess.process(WorkProcessorUtils.java:181) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221) at io.trino.operator.WorkProcessorUtils.lambda$processStateMonitor$2(WorkProcessorUtils.java:200) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorUtils.lambda$flatten$6(WorkProcessorUtils.java:277) at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:319) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:306) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221) at io.trino.operator.WorkProcessorUtils.lambda$processStateMonitor$2(WorkProcessorUtils.java:200) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221) at io.trino.operator.WorkProcessorUtils.lambda$finishWhen$3(WorkProcessorUtils.java:215) at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372) at io.trino.operator.WorkProcessorSourceOperatorAdapter.getOutput(WorkProcessorSourceOperatorAdapter.java:149) at io.trino.operator.Driver.processInternal(Driver.java:387) at io.trino.operator.Driver.lambda$processFor$9(Driver.java:291) at io.trino.operator.Driver.tryWithLock(Driver.java:683) at io.trino.operator.Driver.processFor(Driver.java:284) at io.trino.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1075) at io.trino.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:163) at io.trino.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:484) at io.trino.$gen.Trino_356_10_g5f7fa84_dirty____20211106_024354_2.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.apache.kudu.client.NonRecoverableException: cannot complete before timeout: ScanRequest(scannerId=null, tablet=de774c4553c64e2a9eb8a1f6c5e55027, attempt=75, KuduRpc(method=Scan, tablet=de774c4553c64e2a9eb8a1f6c5e55027, attempt=75, TimeoutTracker(timeout=120000, elapsed=117293), Trace Summary(48994 ms): Sent(34), Received(33), Delayed(33), MasterRefresh(0), AuthRefresh(0), Truncated: true Sent: (aeb58702b4464202a204be1537cf45ad, [ Scan, 34 ]) Received: (aeb58702b4464202a204be1537cf45ad, [ UNINITIALIZED, 33 ]) Delayed: (UNKNOWN, [ Scan, 33 ]))) at org.apache.kudu.client.KuduException.transformException(KuduException.java:110) at org.apache.kudu.client.KuduClient.joinAndHandleException(KuduClient.java:413) at org.apache.kudu.client.KuduScanner.nextRows(KuduScanner.java:72) at io.trino.plugin.kudu.KuduRecordCursor.advanceNextPosition(KuduRecordCursor.java:127) ... 32 more Suppressed: org.apache.kudu.client.KuduException.OriginalException: Original asynchronous stack trace at org.apache.kudu.client.AsyncKuduClient.tooManyAttemptsOrTimeout(AsyncKuduClient.java:1676) at org.apache.kudu.client.AsyncKuduClient.delayedSendRpcToTablet(AsyncKuduClient.java:2121) at org.apache.kudu.client.AsyncKuduClient.handleRetryableError(AsyncKuduClient.java:2045) at org.apache.kudu.client.RpcProxy.dispatchTSError(RpcProxy.java:341) at org.apache.kudu.client.RpcProxy.responseReceived(RpcProxy.java:269) at org.apache.kudu.client.RpcProxy.access$000(RpcProxy.java:59) at org.apache.kudu.client.RpcProxy$1.call(RpcProxy.java:149) at org.apache.kudu.client.RpcProxy$1.call(RpcProxy.java:145) at org.apache.kudu.client.Connection.messageReceived(Connection.java:390) at org.apache.kudu.shaded.org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.apache.kudu.client.Connection.handleUpstream(Connection.java:238) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.apache.kudu.shaded.org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.apache.kudu.shaded.org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.apache.kudu.shaded.org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.apache.kudu.shaded.org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.apache.kudu.shaded.org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.apache.kudu.shaded.org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.apache.kudu.shaded.org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.apache.kudu.shaded.org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.apache.kudu.shaded.org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.apache.kudu.shaded.org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.apache.kudu.shaded.org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.apache.kudu.shaded.org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) ... 3 more Caused by: org.apache.kudu.client.RecoverableException: safe time has not yet been initialized at org.apache.kudu.client.RpcProxy.dispatchTSError(RpcProxy.java:341) at org.apache.kudu.client.RpcProxy.responseReceived(RpcProxy.java:269) at org.apache.kudu.client.RpcProxy.access$000(RpcProxy.java:59) at org.apache.kudu.client.RpcProxy$1.call(RpcProxy.java:149) at org.apache.kudu.client.RpcProxy$1.call(RpcProxy.java:145) at org.apache.kudu.client.Connection.messageReceived(Connection.java:390) at org.apache.kudu.shaded.org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.apache.kudu.client.Connection.handleUpstream(Connection.java:238) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.apache.kudu.shaded.org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.apache.kudu.shaded.org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.apache.kudu.shaded.org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.apache.kudu.shaded.org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.apache.kudu.shaded.org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
W1111 11:38:17.955163 4567 consensus_peers.cc:458] T a80592a4b94c439791c296ca320d2527 P 0bb10cb547e547aab4fbc7875730dacd -> Peer 941d23f7d6484d3684b1a4d0c90b843a (presto-3:7050): Couldn't send request to peer 941d23f7d6484d3684b1a4d0c90b843a. Status: Remote error: Service unavailable: Soft memory limit exceeded (at 101.02% of capacity). This is attempt 130211: this message will repeat every 5th retry. W1111 11:38:17.983256 4566 consensus_peers.cc:458] T 0601c2387a374c048d1e49aa3a35d490 P 0bb10cb547e547aab4fbc7875730dacd -> Peer aeb58702b4464202a204be1537cf45ad (presto-1:7050): Couldn't send request to peer aeb58702b4464202a204be1537cf45ad. Status: Remote error: Service unavailable: Soft memory limit exceeded (at 100.93% of capacity). This is attempt 12276: this message will repeat every 5th retry. W1111 11:38:18.022200 4742 maintenance_manager.cc:457] System under memory pressure (100.70% of limit used). However, there are no ops currently runnable which would free memory.
解决方案(待验证
kudu报错:Remote error Service unavailable Soft memory limit exceeded
## Kudu does not support schemas, but the connector can emulate them optionally. ## By default, this feature is disabled, and all tables belong to the default schema. ## For more details see connector documentation. #kudu.schema-emulation.enabled=false
## Prefix to use for schema emulation (only relevant if `kudu.schema-emulation.enabled=true`) ## The standard prefix is `presto::`. Empty prefix is also supported. ## For more details see connector documentation. #kudu.schema-emulation.prefix=