Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Sep 28, 2023
1 parent d6ce91e commit 6e4842d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ In the index mapping, the `_meta` and `properties`field stores meta and schema i
- `spark.datasource.flint.host`: default is localhost.
- `spark.datasource.flint.port`: default is 9200.
- `spark.datasource.flint.scheme`: default is http. valid values [http, https]
- `spark.datasource.flint.auth`: default is false. valid values [false, sigv4, basic]
- `spark.datasource.flint.auth`: default is noauth. valid values [noauth, sigv4, basic]
- `spark.datasource.flint.auth.username`: basic auth username.
- `spark.datasource.flint.auth.password`: basic auth password.
- `spark.datasource.flint.region`: default is us-west-2. only been used when auth=sigv4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class FlintOptions implements Serializable {

public static final String AUTH = "auth";

public static final String NONE_AUTH = "false";
public static final String NONE_AUTH = "noauth";

public static final String SIGV4_AUTH = "sigv4";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ object FlintSparkConf {

val AUTH = FlintConfig("spark.datasource.flint.auth")
.datasourceOption()
.doc("authentication type. supported value: NONE_AUTH(false), SIGV4_AUTH(sigv4), BASIC_AUTH")
.doc("authentication type. supported value: " +
"noauth(no auth), sigv4(sigv4 auth), basic(basic auth)")
.createWithDefault(FlintOptions.NONE_AUTH)

val USERNAME = FlintConfig("spark.datasource.flint.auth.username")
Expand Down

0 comments on commit 6e4842d

Please sign in to comment.