You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claudio Corsi (JIRA)" <ji...@apache.org> on 2012/08/14 21:06:38 UTC
[jira] [Created] (CAMEL-5506) HBase component does not extract that
table name in all cases and HBase runtime version issues.
Claudio Corsi created CAMEL-5506:
------------------------------------
Summary: HBase component does not extract that table name in all cases and HBase runtime version issues.
Key: CAMEL-5506
URL: https://issues.apache.org/jira/browse/CAMEL-5506
Project: Camel
Issue Type: Bug
Affects Versions: 2.10.0
Environment: Any
Reporter: Claudio Corsi
Fix For: 2.10.1, 2.11.0
The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Claudio Corsi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435132#comment-13435132 ]
Claudio Corsi commented on CAMEL-5506:
--------------------------------------
The pom.xml update is only required for users that have a maven project and want to test using camel:run against an already running hbase system. If the service is using 0.92.x or greater, then the camel:run will produce the illegal argument exception with the not a host:port pair. Adding the above update to their maven project pom file will resolve that issue.
The original patch that includes changing the hbase to provided is not required in general since the api using the 0.90.5 hbase is the same as the latest version of hbase.
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-5506:
----------------------------------
Assignee: Claus Ibsen
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Assignee: Claus Ibsen
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435160#comment-13435160 ]
Ioannis Canellos commented on CAMEL-5506:
-----------------------------------------
Regarding the provided scope I agree, as it seems that unless there is an exact version match between the client and the server, then there will be problems.
Regarding the getHost() thing, I am not sure I understand what exactly is the problem. AFAIK it doesn't have issues working with simple names too. In fact in the unit tests simple names have been used and they do work fine. Maybe I misunderstood the problem?
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Assignee: Claus Ibsen
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-5506) HBase component does not extract that
table name in all cases and HBase runtime version issues.
Posted by "Claudio Corsi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claudio Corsi updated CAMEL-5506:
---------------------------------
Attachment: hbase.diffs
This is the patch that contains the fixes required for this issue.
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5506.
--------------------------------
Resolution: Fixed
osgi range widen as well
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Assignee: Claus Ibsen
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435179#comment-13435179 ]
Claus Ibsen commented on CAMEL-5506:
------------------------------------
Oh we should remember to upon up the osgi feature so it uses a range of [0.9,1)
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Assignee: Claus Ibsen
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Claudio Corsi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434410#comment-13434410 ]
Claudio Corsi commented on CAMEL-5506:
--------------------------------------
BTW: This issue has the following workaround.
The table name should include at the very least a '.' in the name.
If using hbase 0.92.x or greater than they need to add the following to their pom file.
{noformat}
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-hbase</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>${hbase-version}</version>
</dependency>
{noformat}
Where base.version is defined.
Note that the patch that I have attached forces the users to define the required hbase client version.
This might not be necessary in this case since the package will not include the hbase client and the users will need to include the runtime. Come to think about it, you can just ignore that part of the patch and apply the rest. Instead, state on the web site that trying to use the default hbase client with 0.92.x or greater will cause an exception.
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5506) HBase component does not extract
that table name in all cases and HBase runtime version issues.
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435124#comment-13435124 ]
Claus Ibsen commented on CAMEL-5506:
------------------------------------
Claudio, thanks for the patch.
The pom.xml code above, is that an information if people would upgrade to a newer hbase version that shipped with Camel?
I assume you patch can be applied to the ASF Camel trunk code.
We may be able to upgrade hbase version but i wonder if there was some osgi issues with newer release?
> HBase component does not extract that table name in all cases and HBase runtime version issues.
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5506
> URL: https://issues.apache.org/jira/browse/CAMEL-5506
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: Any
> Reporter: Claudio Corsi
> Labels: camel-hbase
> Fix For: 2.10.1, 2.11.0
>
> Attachments: hbase.diffs
>
>
> The current hbase component uses the URI getHost method to retrieve the table name but this method returns null if the host name does not conform to the requirements of this method. For instance, it should include a '.' in the name, or is a ipv4 or ipv6 valid address string. If the table name is a simple name then the getHost method will return null instead of the name of the table. This will in turn cause a NPE exception.
> The other issue is that if you are using 0.92.x or greater with the current implementation of the camel-hbase component. An IllegalArgumentException is generated because of an incompatible host:port pair. This is caused by the fact that the current hbase integration uses 0.90.5 and this will conflict with those versions.
> I have a patch that solves both issues but in the second case. It will require that the user define the specific hbase client version that they need to use.
> btw, the camel-hbase component is not available as an option for the Component/s drop down list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira