use of io.dingodb.store.row.client.DefaultDingoRowStore in project dingo by dingodb.
the class DefaultDingoRowStoreStartup method main.
public static void main(String[] args) throws Exception {
if (args.length != 1) {
LOG.error("Usage: io.dingodb.store.row.DefaultDingoRowStoreStartup <ConfigFilePath>");
System.exit(1);
}
final String configPath = args[0];
final ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
final DingoRowStoreOptions opts = mapper.readValue(new File(configPath), DingoRowStoreOptions.class);
final DefaultDingoRowStore store = new DefaultDingoRowStore();
if (!store.init(opts)) {
throw new StoreStartupException("Fail to start [DefaultDingoRowStoreStartup].");
}
LOG.info("Starting DefaultDingoRowStore with config: {}.", opts);
}
Aggregations