[ 
https://issues.apache.org/jira/browse/HBASE-18615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16134004#comment-16134004
 ] 

stack commented on HBASE-18615:
-------------------------------

Having trouble getting jersey2 reading/writing json. The Jackson1Feature trick 
that was used in past pulls in jersey1. Trying to change it to go the kosher 
route makes for new issues.  Here are some items that get more of the tests to 
pass and json to render in certain contexts.

Add registering of the jaxrs and a provider when setting up the Rest 
Application:

+  static class RESTApplication extends ResourceConfig {
+    public RESTApplication() {
+      packages( "org.apache.hadoop.hbase.rest", 
"com.fasterxml.jackson.jaxrs.base");
+      register(JacksonJsonProvider.class);
+    }
+  }

Fixed TestTableResource at least.

Next up is using alternate JacksonJaxbJsonProvider from fasterxml but it 
doesn't know what to do w/ iterator type.

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized 
field "iterator" (class org.apache.hadoop.hbase.rest.model.CellSetModel), not 
marked as ignorable (one known property: "Row"])

The filtering out of jersey1 from hadoop is causing other test failures.

Didn't expect this to get so ugly. It comes of our upgrade of jetty/jersey so 
would be worth getting to the end....



> hbase-rest tests fail in hbase-2.0.0-alpha2
> -------------------------------------------
>
>                 Key: HBASE-18615
>                 URL: https://issues.apache.org/jira/browse/HBASE-18615
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>            Reporter: stack
>            Assignee: stack
>         Attachments: 18615.2.txt, 18615.txt, 18615.v3.txt, 
> HBASE-18615.branch-2.001.patch
>
>
> Pointed out by Andrew on VOTE mail for hbase-2.0.0-alpha2



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to