You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "David Wayne Birdsall (JIRA)" <ji...@apache.org> on 2016/02/12 22:30:18 UTC
[jira] [Commented] (TRAFODION-1831) Wrong error message when
traf_coprocessor.properties is absent
[ https://issues.apache.org/jira/browse/TRAFODION-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15145340#comment-15145340 ]
David Wayne Birdsall commented on TRAFODION-1831:
-------------------------------------------------
JIRA TRAFODION-1729 introduced the new file traf_coprocessor.properties, which is used to determine what coprocessors should be loaded for Trafidion tables. This file is added to $MY_SQROOT/etc by the install process.
For developers, though, who had existing instances and picked up this change without an install, this file would be missing.
The effect was that almost all SQL statements would fail with this error:
*** ERROR[1394] Trafodion needs to be reinitialized on this system due to missing or corrupted metadata objects. Do 'initialize trafodion, drop' followed by 'initialize trafodion' to reinitialize Trafodion. This will delete all metadata and user objects from the Trafodion database and recreate metadata.
But this was not the problem at all. And doing the steps required does not solve the problem.
The solution instead is to put this properties file in $MY_SQROOT/etc.
A better error message is the following:
*** ERROR[1398] Error 704 occured while accessing the hbase subsystem. Fix that error and make sure hbase is up and running. Error Details:
java.lang.NullPointerException
java.lang.String.contains(String.java:2076)
org.TRAFODION.sql.CoprocessorUtils.addCoprocessor(CoprocessorUtils.java:76)
org.TRAFODION.sql.CoprocessorUtils.addCoprocessor(CoprocessorUtils.java:88)
org.TRAFODION.sql.HBaseClient.getHTableClient(HBaseClient.java:861)
At the very least, this points to a coprocessor problem, which will lead the developer to this missing file.
This JIRA changes the code to return this error message instead.
> Wrong error message when traf_coprocessor.properties is absent
> --------------------------------------------------------------
>
> Key: TRAFODION-1831
> URL: https://issues.apache.org/jira/browse/TRAFODION-1831
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-cmu
> Affects Versions: 2.0-incubating
> Reporter: David Wayne Birdsall
> Assignee: David Wayne Birdsall
> Priority: Minor
> Fix For: 2.0-incubating
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)