From b8f206726594214c96506c85ba6c8c2faedbea06 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Thu, 2 Feb 2023 17:12:29 -0600 Subject: [PATCH] add port to config model for cqld4 adapter --- .../src/main/java/io/nosqlbench/adapter/cqld4/Cqld4Space.java | 3 ++- adapter-cqld4/src/main/resources/cqld4.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adapter-cqld4/src/main/java/io/nosqlbench/adapter/cqld4/Cqld4Space.java b/adapter-cqld4/src/main/java/io/nosqlbench/adapter/cqld4/Cqld4Space.java index 570b564fc..e64139435 100644 --- a/adapter-cqld4/src/main/java/io/nosqlbench/adapter/cqld4/Cqld4Space.java +++ b/adapter-cqld4/src/main/java/io/nosqlbench/adapter/cqld4/Cqld4Space.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 nosqlbench + * Copyright (c) 2022-2023 nosqlbench * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -284,6 +284,7 @@ public class Cqld4Space implements AutoCloseable { .add(Param.optional("localdc")) .add(Param.optional(List.of("secureconnectbundle", "scb"))) .add(Param.optional(List.of("hosts", "host"))) + .add(Param.defaultTo("port",9041)) .add(Param.optional("driverconfig", String.class)) .add(Param.optional("username", String.class, "user name (see also password and passfile)")) .add(Param.optional("userfile", String.class, "file to load the username from")) diff --git a/adapter-cqld4/src/main/resources/cqld4.md b/adapter-cqld4/src/main/resources/cqld4.md index e296e7cfd..e614d9bb9 100644 --- a/adapter-cqld4/src/main/resources/cqld4.md +++ b/adapter-cqld4/src/main/resources/cqld4.md @@ -58,6 +58,7 @@ nb5 ... driverconfig='http://gist.github.com...' - **hosts** & **localdc** - (required unless using scb) - Set the endpoint and local datacenter name for the driver. - example: `host=mydsehost localdc=testdc1` +- **port** (optional for hosts) - Set the port to connect to for the CQL binary protocol. - **driverconfig** - (explained above) - set the configuration source for the driver. - **username** OR **userfile** - (optional, only one may be used) - If you need to specify a username but want to put it in a file instead, simply use the `userfile=myfile` option. It is