java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses.
从err message看是protobuf抛出的异常,往往是pb版本冲突导致的。odps-sdk用的是2.4.1的pb,可以检查下你是否打包了高版本的pb到jar包里面了。
解决方法是用shaded的odps-sdk,即在依赖的时候指定classifier为shaded,这样就能避免pb冲突:
com.aliyun.odps
odps-sdk-core
0.35.5-public
shaded
可以参考这个问题:https://stackoverflow.com/questions/29044309/hbase-get-scanner-exception-this-is-supposed-to-be-overridden-by-subclasses
赞0
踩0