Examples of unset()


Examples of org.apache.hadoop.hdfs.HdfsConfiguration.unset()

   
    // Set the NN-specific fencer to fail. Should fail to fence.
    conf.set(nnSpecificKey, getFencerFalseCommand());
    tool.setConf(conf);
    assertEquals(-1, runTool("-failover", "nn1", "nn2", "--forcefence"));
    conf.unset(nnSpecificKey);

    // Set an NS-specific fencer to fail. Should fail.
    conf.set(nsSpecificKey, getFencerFalseCommand());
    tool.setConf(conf);
    assertEquals(-1, runTool("-failover", "nn1", "nn2", "--forcefence"));
View Full Code Here

Examples of org.apache.hadoop.hdfs.HdfsConfiguration.unset()

   
    // Set the NN-specific fencer to fail. Should fail to fence.
    conf.set(nnSpecificKey, "shell(false)");
    tool.setConf(conf);
    assertEquals(-1, runTool("-failover", "nn1", "nn2", "--forcefence"));
    conf.unset(nnSpecificKey);

    // Set an NS-specific fencer to fail. Should fail.
    conf.set(nsSpecificKey, "shell(false)");
    tool.setConf(conf);
    assertEquals(-1, runTool("-failover", "nn1", "nn2", "--forcefence"));
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf.unset()

    HiveConf defaultHiveConf = new HiveConf();
    defaultHiveConf.setVar(ConfVars.METASTOREURIS, "dummyvalue");
    // reset to the hive-site.xml values for following param
    defaultHiveConf.set("hive.dummyparam.test.server.specific.config.override",
        "from.hive-site.xml");
    defaultHiveConf.unset("hive.dummyparam.test.server.specific.config.metastoresite");
    defaultHiveConf.writeXml(out);

    // set the new hive-site.xml
    HiveConf.setHiveSiteLocation(hiveSite.toURI().toURL());
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.JobConf.unset()

    JobConf confVertex1 = new JobConf();
   
    confVertex1.set(MRJobConfig.MAP_OUTPUT_KEY_CLASS, IntWritable.class.getName());
   
    confVertex1.unset(MRJobConfig.KEY_COMPARATOR);
    confVertex1.unset(MRJobConfig.GROUP_COMPARATOR_CLASS);
   
    MRHelpers.translateMRConfToTez(confVertex1);

    assertEquals(IntWritable.Comparator.class.getName(), ConfigUtils
View Full Code Here

Examples of org.apache.hadoop.mapred.JobConf.unset()

    JobConf confVertex1 = new JobConf();
   
    confVertex1.set(MRJobConfig.MAP_OUTPUT_KEY_CLASS, IntWritable.class.getName());
   
    confVertex1.unset(MRJobConfig.KEY_COMPARATOR);
    confVertex1.unset(MRJobConfig.GROUP_COMPARATOR_CLASS);
   
    MRHelpers.translateMRConfToTez(confVertex1);

    assertEquals(IntWritable.Comparator.class.getName(), ConfigUtils
        .getIntermediateOutputKeyComparator(confVertex1).getClass().getName());
View Full Code Here

Examples of org.apache.hadoop.yarn.conf.YarnConfiguration.unset()

  public void testPostEntitiesTimelineServiceDefaultNotEnabled()
      throws Exception {
    YarnConfiguration conf = new YarnConfiguration();
    // Unset the timeline service's enabled properties.
    // Make sure default value is pickup up
    conf.unset(YarnConfiguration.TIMELINE_SERVICE_ENABLED);
    TimelineClientImpl client = createTimelineClient(conf);
    mockClientResponse(client, ClientResponse.Status.INTERNAL_SERVER_ERROR,
        false, false);
    try {
      TimelinePutResponse response = client.putEntities(generateEntity());
View Full Code Here

Examples of org.apache.openejb.server.webservices.saaj.SaajUniverse.unset()

        SaajUniverse universe = new SaajUniverse();
        universe.set(SaajUniverse.AXIS1);
        try {
            doService(request, response);
        } finally {
            universe.unset();
        }
    }
   
    protected void doService(HttpRequest req, HttpResponse res) throws Exception {
        org.apache.axis.MessageContext messageContext = new org.apache.axis.MessageContext(null);
View Full Code Here

Examples of org.apache.openejb.server.webservices.saaj.SaajUniverse.unset()

        final SaajUniverse universe = new SaajUniverse();
        universe.set(SaajUniverse.AXIS1);
        try {
            return doIntercept(method, objects, methodProxy);
        } finally {
            universe.unset();
        }
    }

    private Object doIntercept(final Method method, final Object[] objects, final MethodProxy methodProxy) throws Throwable {
        final int index = methodProxy.getSuperIndex();
View Full Code Here

Examples of org.apache.openejb.server.webservices.saaj.SaajUniverse.unset()

        final SaajUniverse universe = new SaajUniverse();
        universe.set(SaajUniverse.AXIS1);
        try {
            doService(request, response);
        } finally {
            universe.unset();
        }
    }

    protected void doService(final HttpRequest req, final HttpResponse res) throws Exception {
        final org.apache.axis.MessageContext messageContext = new org.apache.axis.MessageContext(null);
View Full Code Here

Examples of org.apache.openejb.server.webservices.saaj.SaajUniverse.unset()

        SaajUniverse universe = new SaajUniverse();
        universe.set(SaajUniverse.DEFAULT);
        try {
            destination.invoke(request, response);
        } finally {
            universe.unset();
        }
    }

    private void getWsdl(HttpRequest request, HttpResponse response) throws Exception {
        WsdlQueryHandler queryHandler = new WsdlQueryHandler(this.bus);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.