Package com.cloudera.flume.conf

Examples of com.cloudera.flume.conf.FlumeSpecException


      xsink = FlumeSpecGen.genEventSink(substBEChains(sink, failovers));
      xsink = FlumeSpecGen.genEventSink(substDFOChainsNoLet(xsink, failovers));
      xsink = FlumeSpecGen.genEventSink(substE2EChainsSimple(xsink, failovers));
      return xsink;
    } catch (RecognitionException e) {
      throw new FlumeSpecException(e.getMessage());
    }
  }
View Full Code Here


  final EventSink snk;

  public CompositeSink(Context context, String spec) throws FlumeSpecException {
    snk = FlumeBuilder.buildSink(context, spec);
    if (snk == null) {
      throw new FlumeSpecException(
          "Illegal flume spec expression (sink/source/deco not found)");
    }
  }
View Full Code Here

    synchronized (registeredFormats) {
      builder = registeredFormats.get(name);
    }

    if (builder == null) {
      throw new FlumeSpecException("Invalid output format: " + name);
    }

    return builder.build(args);
  }
View Full Code Here

   */
  public FormatFactory registerFormat(String name, OutputFormatBuilder builder)
      throws FlumeSpecException {
    synchronized (registeredFormats) {
      if (registeredFormats.containsKey(name)) {
        throw new FlumeSpecException(
            "Redefining registered output formats is not permitted. Attempted to redefine "
                + name);
      }

      registeredFormats.put(name, builder);
View Full Code Here

      sink = FlumeBuilder.buildSink(ctx, snk);
      break;
    }

    default:
      throw new FlumeSpecException("unexpected agent mode: " + mode + "!");
    }

  }
View Full Code Here

      LOG.info("Setting failover chain to  " + chains);
      snk = new CompositeSink(context, chains);
      break;
    }
    default: {
      throw new FlumeSpecException("Unknown reliability " + rel);
    }
    }
  }
View Full Code Here

      sink = FlumeBuilder.buildSink(ctx, snk);
      break;
    }

    default:
      throw new FlumeSpecException("unexpected agent mode: " + mode + "!");
    }

  }
View Full Code Here

    synchronized (registeredFormats) {
      builder = registeredFormats.get(name);
    }

    if (builder == null) {
      throw new FlumeSpecException("Invalid output format: " + name);
    }

    return builder.create(args);
  }
View Full Code Here

    synchronized (registeredFormats) {
      builder = registeredFormats.get(name);
    }

    if (builder == null) {
      throw new FlumeSpecException("Invalid output format: " + name);
    }

    return builder.build(args);
  }
View Full Code Here

   */
  public FormatFactory registerFormat(String name, OutputFormatBuilder builder)
      throws FlumeSpecException {
    synchronized (registeredFormats) {
      if (registeredFormats.containsKey(name)) {
        throw new FlumeSpecException(
            "Redefining registered output formats is not permitted. Attempted to redefine "
                + name);
      }

      registeredFormats.put(name, builder);
View Full Code Here

TOP

Related Classes of com.cloudera.flume.conf.FlumeSpecException

Copyright © 2018 www.massapicom. 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.