Expected com.facebook.presto.$gen.SliceStateSerializer

Expected com.facebook.presto.$gen.SliceStateSerializer

1.出现的异常为:

Caused by: java.lang.BootstrapMethodError: call site initialization exception
at java.lang.invoke.CallSite.makeSite(CallSite.java:341)
at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
at com.facebook.presto. g e n . S l i c e S t a t e S e r i a l i z e r 2 022122 8 1 2184 1 1 0. g e t S e r i a l i z e d T y p e ( U n k n o w n S o u r c e ) a t c o m . f a c e b o o k . p r e s t o . o p e r a t o r . a g g r e g a t i o n . P a r a m e t r i c A g g r e g a t i o n . s p e c i a l i z e ( P a r a m e t r i c A g g r e g a t i o n . j a v a : 115 ) a t c o m . f a c e b o o k . p r e s t o . m e t a d a t a . B u i l t I n F u n c t i o n N a m e s p a c e M a n a g e r . l a m b d a gen.SliceStateSerializer_20221228_121841_10.getSerializedType(Unknown Source) at com.facebook.presto.operator.aggregation.ParametricAggregation.specialize(ParametricAggregation.java:115) at com.facebook.presto.metadata.BuiltInFunctionNamespaceManager.lambda gen.SliceStateSerializer2​02212281​218411​0.getSerializedType(UnknownSource)atcom.facebook.presto.operator.aggregation.ParametricAggregation.specialize(ParametricAggregation.java:115)atcom.facebook.presto.metadata.BuiltInFunctionNamespaceManager.lambdanew 1 ( B u i l t I n F u n c t i o n N a m e s p a c e M a n a g e r . j a v a : 419 ) a t c o m . g o o g l e . c o m m o n . c a c h e . C a c h e L o a d e r 1(BuiltInFunctionNamespaceManager.java:419) at com.google.common.cache.CacheLoader 1(BuiltInFunctionNamespaceManager.java:419)atcom.google.common.cache.CacheLoaderFunctionToCacheLoader.load(CacheLoader.java:165)
at com.google.common.cache.LocalCache L o a d i n g V a l u e R e f e r e n c e . l o a d F u t u r e ( L o c a l C a c h e . j a v a : 3528 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e LoadingValueReference.loadFuture(LocalCache.java:3528) at com.google.common.cache.LocalCache LoadingValueReference.loadFuture(LocalCache.java:3528)atcom.google.common.cache.LocalCacheSegment.loadSync(LocalCache.java:2277)
at com.google.common.cache.LocalCache S e g m e n t . l o c k e d G e t O r L o a d ( L o c a l C a c h e . j a v a : 2154 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e Segment.lockedGetOrLoad(LocalCache.java:2154) at com.google.common.cache.LocalCache Segment.lockedGetOrLoad(LocalCache.java:2154)atcom.google.common.cache.LocalCacheSegment.get(LocalCache.java:2044)
… 37 more
Caused by: java.lang.IllegalArgumentException: Expected com.facebook.presto.$gen.SliceStateSerializer_20221228_121841_10’s classloader to be of type com.facebook.presto.bytecode.DynamicClassLoader
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:440)
at com.facebook.presto.sql.gen.Bootstrap.bootstrap(Bootstrap.java:47)
at java.lang.invoke.CallSite.makeSite(CallSite.java:294)
… 47 more

2.我的解决方案是
原本我的IDEA里面的pom.xml中的配置是


4.0.0

com.qf.bigdata
presto
1.0


    8
    8
    1.8
    0.236
    
    2.6



    
        io.airlift
        slice
        0.38
    

    
        com.google.guava
        guava
        26.0-jre
    

    
        com.facebook.presto
        presto-spi
        ${presto.version}
        
    

    
        com.facebook.presto
        presto-main
        ${presto.version}
        
    



    
        ali-maven
        http://maven.aliyun.com/nexus/content/groups/public
        
            true
        
        
            true
            always
            fail
        
    


    
        ali-maven
        http://maven.aliyun.com/nexus/content/groups/public
    


    src/main/java
    
        
            org.apache.maven.plugins
            maven-assembly-plugin
            ${maven-assembly-plugin.version}
            
                
                    jar-with-dependencies
                
            
            
                
                    make-assembly
                    package
                    
                        single
                    
                
            
        
        
            org.apache.maven.plugins
            maven-compiler-plugin
            3.1
            
                ${jdk-version}
                ${jdk-version}
                UTF-8
                true
            
        
    

解决:把pom.xml里面的全部注释去掉重新打包即可!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5681964.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存