Browse Source

Revert "HUE-1188 [beeswax] Support hadoop.rpc.protection set to anything other than "authentication""

This reverts commit f13ef3b0bdfc359d5d6ebb65f9bf62088424ff22.
Romain Rigaux 12 years ago
parent
commit
7af15828b7
1 changed files with 1 additions and 6 deletions
  1. 1 6
      apps/beeswax/java/src/main/java/com/cloudera/beeswax/Server.java

+ 1 - 6
apps/beeswax/java/src/main/java/com/cloudera/beeswax/Server.java

@@ -54,9 +54,6 @@ import org.apache.thrift.transport.TTransportFactory;
 import com.cloudera.beeswax.api.BeeswaxService;
 import com.cloudera.beeswax.api.BeeswaxService.Processor;
 import com.facebook.fb303.FacebookService;
-import java.util.HashMap;
-import java.util.Map;
-import javax.security.sasl.Sasl;
 
 public class Server {
 
@@ -263,12 +260,10 @@ public class Server {
             "Kerberos principal should have at least 2 parts: " + kerberosName);
       }
 
-      Map<String,String> SASL_PROPS = new HashMap<String, String>(SaslRpcServer.SASL_PROPS);
-      SASL_PROPS.put(Sasl.QOP, SaslRpcServer.QualityOfProtection.AUTHENTICATION.getSaslQop());
       TSaslServerTransport.Factory saslFactory =
           new TSaslServerTransport.Factory(AuthMethod.KERBEROS.getMechanismName(),
               names[0], names[1] , // two parts of kerberos principal
-              SASL_PROPS,
+              SaslRpcServer.SASL_PROPS,
               new SaslRpcServer.SaslGssCallbackHandler());
       transFactory = new KbrSaslTransportFactory(saslFactory, bwUgi);
     } else {