我正在尝试将直线输出转储到文件中,但它会出现“超出消息长度: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)
以下是我的直线评论:
beeline -u jdbc:hive2:// xxxx:10000 / default -n xxx -p xxx -f /frankie/query.hql --silent = true --showHeader = true --incremental = true --outputformat = tsv2> output.tsv
和Hive Server版本:
Apache Hive的直线版0.13.1-cdh5.3.3
有人能告诉我如何解决这个问题吗?