kettle抽取hive报错

0
有没有遇到这种情况的 FAILED: Execution Error, return code 1 from  org.apache.hadoop.hive.ql.exec.mr.MapRedTask
这个是kettle预览hive数据报错。。我在linux系统用hive count单表数据量的时候遇到了同样的错误(hive查询数据没问题), 不过只要切换用户启动hive就可以了 但是kettle的话 怎么弄? 
报错如下:
2016/10/26 10:06:59 - Version checker - OK
2016/10/26 10:07:16 - F:\hive_to_rdbms.ktr : hive_to_rdbms - 为了转换解除补丁开始  [F:\hive_to_rdbms.ktr : hive_to_rdbms]
2016/10/26 10:07:21 - Table input.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected error
2016/10/26 10:07:21 - Table input.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 
2016/10/26 10:07:21 - Table input.0 - An error occurred executing SQL: 
2016/10/26 10:07:21 - Table input.0 - SELECT
2016/10/26 10:07:21 - Table input.0 -   customer.id
2016/10/26 10:07:21 - Table input.0 - , customer.name
2016/10/26 10:07:21 - Table input.0 - , customer.subjectname
2016/10/26 10:07:21 - Table input.0 - , customer.subjectcode
2016/10/26 10:07:21 - Table input.0 - , customer.phasename
2016/10/26 10:07:21 - Table input.0 - , customer.phasecode
2016/10/26 10:07:21 - Table input.0 - , customer.planexamcount
2016/10/26 10:07:21 - Table input.0 - , customer.gradecode
2016/10/26 10:07:21 - Table input.0 - , customer.gradename
2016/10/26 10:07:21 - Table input.0 - , customer.paperid
2016/10/26 10:07:21 - Table input.0 - , customer.papersource
2016/10/26 10:07:21 - Table input.0 - , customer.examid
2016/10/26 10:07:21 - Table input.0 - , customer.examname
2016/10/26 10:07:21 - Table input.0 - , customer.answersheetid
2016/10/26 10:07:21 - Table input.0 - , customer.status
2016/10/26 10:07:21 - Table input.0 - , customer.isstatistics
2016/10/26 10:07:21 - Table input.0 - , customer.schoolid
2016/10/26 10:07:21 - Table input.0 - , customer.createuserid
2016/10/26 10:07:21 - Table input.0 - , customer.createdatetime
2016/10/26 10:07:21 - Table input.0 - , customer.updatetime
2016/10/26 10:07:21 - Table input.0 - , customer.isdelete
2016/10/26 10:07:21 - Table input.0 - , customer.resettimes
2016/10/26 10:07:21 - Table input.0 - , customer.markingstarttime
2016/10/26 10:07:21 - Table input.0 - , customer.markingendtime
2016/10/26 10:07:21 - Table input.0 - FROM customer
2016/10/26 10:07:21 - Table input.0 - 
2016/10/26 10:07:21 - Table input.0 - Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
2016/10/26 10:07:21 - Table input.0 - 
2016/10/26 10:07:21 - Table input.0 -     at org.pentaho.di.core.database.Database.openQuery(Database.java:1717)
2016/10/26 10:07:21 - Table input.0 -     at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:224)
2016/10/26 10:07:21 - Table input.0 -     at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:138)
2016/10/26 10:07:21 - Table input.0 -     at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/10/26 10:07:21 - Table input.0 -     at java.lang.Thread.run(Thread.java:745)
2016/10/26 10:07:21 - Table input.0 - Caused by: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
2016/10/26 10:07:21 - Table input.0 -     at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:167)
2016/10/26 10:07:21 - Table input.0 -     at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:155)
2016/10/26 10:07:21 - Table input.0 -     at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:210)
2016/10/26 10:07:21 - Table input.0 -     at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:333)
2016/10/26 10:07:21 - Table input.0 -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2016/10/26 10:07:21 - Table input.0 -     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2016/10/26 10:07:21 - Table input.0 -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2016/10/26 10:07:21 - Table input.0 -     at java.lang.reflect.Method.invoke(Method.java:497)
2016/10/26 10:07:21 - Table input.0 -     at org.pentaho.hadoop.shim.common.DriverProxyInvocationChain$CaptureResultSetInvocationHandler.invoke(DriverProxyInvocationChain.java:513)
2016/10/26 10:07:21 - Table input.0 -     at com.sun.proxy.$Proxy19.executeQuery(Unknown Source)
2016/10/26 10:07:21 - Table input.0 -     at org.pentaho.di.core.database.Database.openQuery(Database.java:1706)
2016/10/26 10:07:21 - Table input.0 -     ... 4 more
2016/10/26 10:07:21 - Table input.0 - Finished reading query, closing connection.
2016/10/26 10:07:21 - Table input.0 - 完成处理 (I=0, O=0, R=0, W=0, U=0, E=1
 
但是select * from customer 却可以预览数据。。。
获取字段后就预览不了,报如上错误。
已邀请:

要回复问题请先登录注册