sql查询配置单元表并使用beeline转储大文件

zengzsys  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(226)

我试图将一条直线的输出转储到一个文件中,但它得到了“messagelength exceeded:16”错误(如下)。

Transaction isolation: TRANSACTION_REPEATABLE_READ
    org.apche.thrift.TApplicationExcepetion: Message length exceeded: 16
        at org.apache.thrift.TApplicationException.read(TApplicationException.java:108)
        at org.apache.thrift.TServiceClient.receiveBase(TserviceClient.java:71)
        at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_FetchResults(TCLIService.java:505)
        at org.apache.hive.service.cli.thrift.TCLIService$Client.FectchResults(TCLService.java:492)
        at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:355)
        at org.apache.hive.beeline.SeparatedValuesOutputFormat.print(SeparatedValuesOutputFormat.java:70)
        at org.apache.hive.beeline.BeeLine.print(BeeLine.java:1702)
        at org.apache.hive.beeline.Commands.execute(Commands.java:756)
        at org.apache.hive.beeline.Commands.sql(Commands.java:675)
        at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:918)
        at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:780)
        at org.apache.hive.beeline.BeeLine.executeFile(BeeLine.java:760)
        at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:729)
        at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:468)
        at org.apache.hive.beeline.BeeLine.main(BeeLine.java:451)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:221)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
    Error: org.apache.thrift.transport.TTransportException (state=08S01, code=0)

以下是我的直截了当的评论:
直线-ujdbc:hive2://x:10000/default -n -p -f/frankie/query.hql--silent=true--showheader=true--incremental=true--outputformat=tsv2>output.tsv
以及配置单元服务器版本:
ApacheHive的beeline版本0.13.1-cdh5.3.3
有人能告诉我怎么解决这个问题吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题