Another suggestion base on what I have encountered in the past. Please check the CLASSPATH in $MY_SQROOT/etc/ms.env - looking for the trafodion-sql JAR. Is it 'exactly' the same name as the one that is in $MY_SQROOT/export/lib?
If it does not match then you might want to re-sqgen. You could also simply modify ms.env so that the name matches. - stop the Trafodion env - restart the shell - delete $MY_SQROOT/etc/ms.env - sqgen - restart Trafodion Thanks, -Narendra -----Original Message----- From: Dave Birdsall [mailto:[email protected]] Sent: Wednesday, August 24, 2016 1:20 PM To: [email protected] Subject: RE: Getting class not found error on latest Trafodion Hi Narendra, Here's what I get: [birdsall@edev05 incubator-trafodion]$ cp_search /HBaseClient.class /mnt2/birdsall/incubator-trafodion/core/sqf/export/lib/trafodion-sql-cdh-2.1.0.jar: org/trafodion/sql/HBaseClient.class [birdsall@edev05 incubator-trafodion]$ jar tf /mnt2/birdsall/incubator-trafodion/core/sqf/export/lib/trafodion-sql-cdh-2.1.0.jar | grep HBaseClient org/trafodion/sql/HBaseClient$ChangeFlags.class org/trafodion/sql/HBaseClient.class [birdsall@edev05 incubator-trafodion]$ Thanks, Dave -----Original Message----- From: Narendra Goyal [mailto:[email protected]] Sent: Wednesday, August 24, 2016 1:19 PM To: [email protected] Subject: RE: Getting class not found error on latest Trafodion Hi Dave, Could you please try: cp_search /HBaseClient.class It will tell us the JAR name where the class can be found. If it does not find the class in the JAR, please double check in the JAR as follows: jar tf /mnt2/birdsall/incubator-trafodion/core/sqf/export/lib/trafodion-sql-cdh-2.1.0.jar | grep HBaseClient If it is still not there then there may be some issue with the build of the trafodion sql JAR. Thanks, -Narendra -----Original Message----- From: Dave Birdsall [mailto:[email protected]] Sent: Wednesday, August 24, 2016 12:54 PM To: [email protected] Subject: Getting class not found error on latest Trafodion Hi, Today I set up a new branch on latest Trafodion to do some development work. I made some code changes to some C++ modules, did a make clean + a make all. I then bring up the instance. When I try to bring up sqlci, I get the following: [birdsall@edev05 incubator-trafodion]$ sqlci Apache Trafodion Conversational Interface 2.1.0 Copyright (c) 2015-2016 Apache Software Foundation >>get tables; *** ERROR[1398] Error 706 occured while accessing the hbase subsystem. Fix that error and make sure hbase is up and running. Error Details: java.lang.NoClassDefFoundError: org/trafodion/sql/HBaseClient . *** ERROR[8822] The statement was not prepared. >> I checked my $CLASSPATH: It does have /mnt2/birdsall/incubator-trafodion/core/sqf/export/lib/trafodion-sql-cdh-2.1.0.jar in it. Any ideas? Thanks, Dave
