Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: test
    • Labels:
      None

      Description

      I would like to configure MiniAccumuloCluster with a configuration class. Something like:

        MACConfig cfg = new MACConfig();
        cfg.tservers(1);
        cfg.tracers(1);
        cfg.config(TSERV_MAXMEM, "1G");
        MiniAccumuloCluster mac = cfg.create();
        Connector c = mac.getConnector();
        c.createtable("foo");
        mac.getTServers().get(0).stop();
        mac.createTServer();
      

        Activity

        Hide
        Corey J. Nolet added a comment -

        I was wondering if it was different. On that same note... it would be really neat to nicer builder-style methods (like mac.getConnector()), etc to make the API much easier to work with.

        Show
        Corey J. Nolet added a comment - I was wondering if it was different. On that same note... it would be really neat to nicer builder-style methods (like mac.getConnector()), etc to make the API much easier to work with.
        Hide
        Eric Newton added a comment -

        I'm an idiot... this already exists.

        Show
        Eric Newton added a comment - I'm an idiot... this already exists.
        Hide
        Eric Newton added a comment -

        Yes, it would be a change. And we would have to think about that change for a while. But with some thought, we could eliminate nearly all the integration tests we run under the python harness.

        Show
        Eric Newton added a comment - Yes, it would be a change. And we would have to think about that change for a while. But with some thought, we could eliminate nearly all the integration tests we run under the python harness.
        Hide
        Corey J. Nolet added a comment -

        Is this a change to the MiniAccumuloConfig API or a completely new class altogether?

        Show
        Corey J. Nolet added a comment - Is this a change to the MiniAccumuloConfig API or a completely new class altogether?

          People

          • Assignee:
            Eric Newton
            Reporter:
            Eric Newton
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development