Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geomesa-users] Program using Accumulo backed DataStore won't exit

I've written a program using GeoMesa with an Accumulo backed DataStore that works fine but won't exit.    Below is a minimal program that illustrates the problem.  It prints the "Start" and "Finish" messages but doesn't exit.   

Have I done something wrong, not done something I need to do, or is this a bug?


import java.io.IOException;

import java.util.HashMap;
import java.util.Map;

import org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.geotools.data.DataStoreFinder;
import org.locationtech.geomesa.accumulo.data.AccumuloDataStore;

public class Minimal {

        public static void main(String[] args)
            throws AccumuloException, AccumuloSecurityException, IOException {
                System.out.println("Start");
                Map<String, String> dsConf = new HashMap<>();
                dsConf.put("instanceId", "myinstancename");
                dsConf.put("zookeepers", "localhost:2181");
                dsConf.put("user", "myuserid");
                dsConf.put("password", "mypassword");
                dsConf.put("tableName", "mysearchtable");
                dsConf.put("auths", "");
                AccumuloDataStore dataStore = (AccumuloDataStore) DataStoreFinder.getDataStore(dsConf);
                dataStore.dispose();
                System.out.println("Finish");
        }
}


Back to the top