Revert "HBASE-18615 hbase-rest tests fail in hbase-2.0.0-alpha2"

Pushed prematurely. Revert.

This reverts commit 0be04ab4a1.
This commit is contained in:
Michael Stack 2017-08-21 17:23:57 -07:00
parent b059d8602d
commit 62d2cd0d07
2 changed files with 2 additions and 6 deletions

View File

@ -235,9 +235,7 @@ public class RESTServer implements Constants {
parseCommandLine(args, servlet);
// Set up the Jersey servlet container for Jetty
// The Jackson1Feature is a signal to Jersey that it should use jackson doing json.
// See here: https://stackoverflow.com/questions/39458230/how-register-jacksonfeature-on-clientconfig
// set up the Jersey servlet container for Jetty
ResourceConfig application = new ResourceConfig().
packages("org.apache.hadoop.hbase.rest").register(Jackson1Feature.class);
ServletHolder sh = new ServletHolder(new ServletContainer(application));

View File

@ -34,7 +34,6 @@ import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.glassfish.jersey.jackson1.Jackson1Feature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.servlet.ServletContainer;
@ -62,8 +61,7 @@ public class HBaseRESTTestingUtility {
RESTServlet.getInstance(conf, UserProvider.instantiate(conf));
// set up the Jersey servlet container for Jetty
ResourceConfig app = new ResourceConfig().
packages("org.apache.hadoop.hbase.rest").register(Jackson1Feature.class);
ResourceConfig app = new ResourceConfig();
ServletHolder sh = new ServletHolder(new ServletContainer(app));
// set up Jetty and run the embedded server