Sounds good. Thanks! Jihoon 2015년 10월 13일 (화) 오후 11:55, Odin Guillermo Caudillo Gallegos < [email protected]>님이 작성:
> Already changed and solved. > Thanks! > > 2015-10-12 18:00 GMT-05:00 Jihoon Son <[email protected]>: > >> Yes, this error comes from the changed pb schema in 0.11. Would you test >> again using jdbc-0.11? >> >> Thanks, >> Jihoon >> 2015년 10월 13일 (화) 오전 6:15, Odin Guillermo Caudillo Gallegos < >> [email protected]>님이 작성: >> >>> Could this be happening because i'm using it on the 0.11.0 version? >>> The jdbc jar is the latest: tajo-jdbc-0.10.1.jar >>> Thanks >>> >>> 2015-10-12 12:55 GMT-05:00 Odin Guillermo Caudillo Gallegos < >>> [email protected]>: >>> >>>> Hi' i'm getting the following exception when i run a query from a java >>>> jar: >>>> >>>> 2015-10-12 12:54:15,839 INFO: org.apache.tajo.rpc.RpcProtos >>>> (channelActive(206)) - Connection established successfully : >>>> /TajoMaster:26002 >>>> 2015-10-12 12:54:16,145 ERROR: org.apache.tajo.rpc.RpcProtos >>>> (exceptionCaught(199)) - RPC Exception:Message missing required fields: >>>> resultCode >>>> >>>> >>>> My method is the following: >>>> >>>> public void Tajo() { >>>> try{ >>>> Class.forName("org.apache.tajo.jdbc.TajoDriver"); >>>> Connection conn = >>>> DriverManager.getConnection("jdbc:tajo://TajoMaster:26002/default"); >>>> Statement stmt = null; >>>> ResultSet rs=null; >>>> FileWriter file = null; >>>> PrintWriter pw = null; >>>> try { >>>> stmt = conn.createStatement(); >>>> rs = stmt.executeQuery("SELECT count(*) from JSONTABLE;"); >>>> int Cont=rs.getMetaData().getColumnCount(); >>>> file = new FileWriter("/opt/20151012-TEST.txt"); >>>> pw = new PrintWriter(archivo); >>>> while(rs.next()) >>>> { >>>> pw.println(rs.getString(1)); >>>> } >>>> } finally { >>>> if (rs != null) rs.close(); >>>> if (stmt != null) stmt.close(); >>>> if (conn != null) conn.close(); >>>> try { >>>> if (null != file) file.close(); >>>> if (pw != null) pw.close(); >>>> } catch (Exception e2) { >>>> e2.printStackTrace(); >>>> } >>>> } >>>> }catch(Exception e){ >>>> e.printStackTrace(); >>>> } >>>> } >>>> >>> >>> >
