1 Reply Latest reply on Apr 1, 2013 4:01 PM by devin pinkston

    Hive Connector not working in Teiid 8

    devin pinkston Newbie

      https://issues.jboss.org/browse/TEIID-2438

       

      I see this issue as logged, i'm just trying to query a hive connection and receive these errors.  I can connect to data source, but looks like i'm getting the nulls wrapped around.  I see that there was a solution posted, but I'm not sure how to solve it on my end.  Is there a simple fix to this?

       

      Thanks

       

      executing using the TeiidDataSource

          at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:135)

          at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:71)

          at org.teiid.jdbc.StatementImpl.postReceiveResults(StatementImpl.java:660)

          at org.teiid.jdbc.StatementImpl.access$100(StatementImpl.java:63)

          at org.teiid.jdbc.StatementImpl$2.onCompletion(StatementImpl.java:516)

          at org.teiid.client.util.ResultsFuture.done(ResultsFuture.java:130)

          at org.teiid.client.util.ResultsFuture.access$200(ResultsFuture.java:37)

          at org.teiid.client.util.ResultsFuture$1.receiveResults(ResultsFuture.java:75)

          at org.teiid.net.socket.SocketServerInstanceImpl.receivedMessage(SocketServerInstanceImpl.java:222)

          at org.teiid.net.socket.SocketServerInstanceImpl.read(SocketServerInstanceImpl.java:257)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.teiid.net.socket.SocketServerConnectionFactory$ShutdownHandler.invoke(SocketServerConnectionFactory.java:102)

          at sun.proxy.$Proxy1.read(Unknown Source)

          at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler$1.get(SocketServerInstanceImpl.java:356)

          at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:525)

          at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:393)

          at org.teiid.jdbc.StatementImpl.executeQuery(StatementImpl.java:327)

          at JDBCClient.execute(JDBCClient.java:81)

          at JDBCClient.main(JDBCClient.java:46)

      Caused by: org.teiid.core.TeiidProcessingException: TEIID30504 Remote org.teiid.core.TeiidProcessingException: TEIID30504 hive-connector: 10 TEIID11008:TEIID11004 Error executing statement(s): [Prepared Values: [] SQL: SELECT g_0.citing, g_0.cited FROM nullcitenull g_0]

          at org.teiid.dqp.internal.process.DataTierTupleSource.exceptionOccurred(DataTierTupleSource.java:549)

          at org.teiid.dqp.internal.process.DataTierTupleSource.nextTuple(DataTierTupleSource.java:322)

          at org.teiid.query.processor.relational.AccessNode.nextBatchDirect(AccessNode.java:306)

          at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)

          at org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:149)

          at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:144)

          at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:110)

          at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:153)

          at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:400)

          at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:296)

          at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51)

          at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:224)

          at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:264)

          at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:123)

          at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:298)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

          at java.lang.Thread.run(Thread.java:662)

      Caused by: org.teiid.core.TeiidException: 10 Remote org.teiid.translator.jdbc.JDBCExecutionException: 10 TEIID11008:TEIID11004 Error executing statement(s): [Prepared Values: [] SQL: SELECT g_0.citing, g_0.cited FROM nullcitenull g_0]

          at org.teiid.translator.jdbc.JDBCQueryExecution.execute(JDBCQueryExecution.java:88)

          at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:257)

          at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:464)

          at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:178)

          at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:175)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at org.teiid.dqp.internal.process.DQPCore$FutureWork.run(DQPCore.java:120)

          ... 6 more

      Caused by: java.sql.SQLException: Remote java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in semantic analysis: Line 1:34 Table not found 'nullcitenull'

          at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeImmediate(HivePreparedStatement.java:177)

          at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeQuery(HivePreparedStatement.java:140)

          at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:462)

          at org.teiid.translator.jdbc.JDBCQueryExecution.execute(JDBCQueryExecution.java:84)

          ... 13 more

      Caused by: org.teiid.core.TeiidRuntimeException: Remote org.apache.hadoop.hive.service.HiveServerException: Query returned non-zero code: 10, cause: FAILED: Error in semantic analysis: Line 1:34 Table not found 'nullcitenull'

          at org.apache.hadoop.hive.service.ThriftHive$execute_result.read(ThriftHive.java:1318)

          at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)

          at org.apache.hadoop.hive.service.ThriftHive$Client.recv_execute(ThriftHive.java:105)

          at org.apache.hadoop.hive.service.ThriftHive$Client.execute(ThriftHive.java:92)

          at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeImmediate(HivePreparedStatement.java:175)

          ... 16 more

      org.teiid.jdbc.TeiidSQLException: TEIID30504 Remote org.teiid.core.TeiidProcessingException: TEIID30504 hive-connector: 10 TEIID11008:TEIID11004 Error executing statement(s): [Prepared Values: [] SQL: SELECT g_0.citing, g_0.cited FROM nullcitenull g_0]

          at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:135)

          at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:71)

          at org.teiid.jdbc.StatementImpl.postReceiveResults(StatementImpl.java:660)

          at org.teiid.jdbc.StatementImpl.access$100(StatementImpl.java:63)

          at org.teiid.jdbc.StatementImpl$2.onCompletion(StatementImpl.java:516)

          at org.teiid.client.util.ResultsFuture.done(ResultsFuture.java:130)

          at org.teiid.client.util.ResultsFuture.access$200(ResultsFuture.java:37)

          at org.teiid.client.util.ResultsFuture$1.receiveResults(ResultsFuture.java:75)

          at org.teiid.net.socket.SocketServerInstanceImpl.receivedMessage(SocketServerInstanceImpl.java:222)

          at org.teiid.net.socket.SocketServerInstanceImpl.read(SocketServerInstanceImpl.java:257)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.teiid.net.socket.SocketServerConnectionFactory$ShutdownHandler.invoke(SocketServerConnectionFactory.java:102)

          at sun.proxy.$Proxy1.read(Unknown Source)

          at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler$1.get(SocketServerInstanceImpl.java:356)

          at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:525)

          at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:393)

          at org.teiid.jdbc.StatementImpl.executeQuery(StatementImpl.java:327)

          at JDBCClient.execute(JDBCClient.java:81)

          at JDBCClient.main(JDBCClient.java:51)

      Caused by: org.teiid.core.TeiidProcessingException: TEIID30504 Remote org.teiid.core.TeiidProcessingException: TEIID30504 hive-connector: 10 TEIID11008:TEIID11004 Error executing statement(s): [Prepared Values: [] SQL: SELECT g_0.citing, g_0.cited FROM nullcitenull g_0]

          at org.teiid.dqp.internal.process.DataTierTupleSource.exceptionOccurred(DataTierTupleSource.java:549)

          at org.teiid.dqp.internal.process.DataTierTupleSource.nextTuple(DataTierTupleSource.java:322)

          at org.teiid.query.processor.relational.AccessNode.nextBatchDirect(AccessNode.java:306)

          at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)

          at org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:149)

          at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:144)

          at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:110)

          at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:153)

          at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:400)

          at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:296)

          at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51)

          at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:224)

          at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:264)

          at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:123)

          at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:298)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

          at java.lang.Thread.run(Thread.java:662)

      Caused by: org.teiid.core.TeiidException: 10 Remote org.teiid.translator.jdbc.JDBCExecutionException: 10 TEIID11008:TEIID11004 Error executing statement(s): [Prepared Values: [] SQL: SELECT g_0.citing, g_0.cited FROM nullcitenull g_0]

          at org.teiid.translator.jdbc.JDBCQueryExecution.execute(JDBCQueryExecution.java:88)

          at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:257)

          at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:464)

          at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:178)

          at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:175)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at org.teiid.dqp.internal.process.DQPCore$FutureWork.run(DQPCore.java:120)

          ... 6 more

      Caused by: java.sql.SQLException: Remote java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in semantic analysis: Line 1:34 Table not found 'nullcitenull'

          at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeImmediate(HivePreparedStatement.java:177)

          at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeQuery(HivePreparedStatement.java:140)

          at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:462)

          at org.teiid.translator.jdbc.JDBCQueryExecution.execute(JDBCQueryExecution.java:84)

          ... 13 more

      Caused by: org.teiid.core.TeiidRuntimeException: Remote org.apache.hadoop.hive.service.HiveServerException: Query returned non-zero code: 10, cause: FAILED: Error in semantic analysis: Line 1:34 Table not found 'nullcitenull'

          at org.apache.hadoop.hive.service.ThriftHive$execute_result.read(ThriftHive.java:1318)

          at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)

          at org.apache.hadoop.hive.service.ThriftHive$Client.recv_execute(ThriftHive.java:105)

          at org.apache.hadoop.hive.service.ThriftHive$Client.execute(ThriftHive.java:92)

          at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeImmediate(HivePreparedStatement.java:175)