Skip to content

[SPARK-47108][CORE] Set derby.connection.requireAuthentication to false explicitly in CLIs#45185

Closed
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:SPARK-47108
Closed

[SPARK-47108][CORE] Set derby.connection.requireAuthentication to false explicitly in CLIs#45185
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:SPARK-47108

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Feb 20, 2024

What changes were proposed in this pull request?

This PR aims to set derby.connection.requireAuthentication to false explicitly in CLIs by adding an option at SparkSubmitCommandBuilder.

Why are the changes needed?

Not that the embedded Apache Derby is supposed to be used in a non-production environment only. However, it's used (or exposed) to the users when there is no reachable Hive MetaStores. For example, spark-shell and spark-sql and Spark ThriftServer.

// isEmbeddedMetaStore should not be true in the production environment.

Although derby.connection.requireAuthentication is supposed to be false by default in Apache Derby, this PR aims to make it sure that Apache Spark doesn't use it always intentionally.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun
Copy link
Member Author

Thank you, @HyukjinKwon . Merged to master for Apache Spark 4.0.0.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-47108 branch February 20, 2024 23:57
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Mar 26, 2024
…false` explicitly in CLIs

### What changes were proposed in this pull request?

This PR aims to set `derby.connection.requireAuthentication` to `false` explicitly in CLIs by adding an option at `SparkSubmitCommandBuilder`.

### Why are the changes needed?

Not that the embedded `Apache Derby` is supposed to be used in a non-production environment only. However, it's used (or exposed) to the users when there is no reachable Hive MetaStores. For example, `spark-shell` and `spark-sql` and `Spark ThriftServer`.

https://github.com/apache/spark/blob/9d9675922543e3e5c3b01023e5a756462a1fd308/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala#L190

Although `derby.connection.requireAuthentication` is supposed to be `false` by default in Apache Derby, this PR aims to make it sure that Apache Spark doesn't use it always intentionally.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#45185 from dongjoon-hyun/SPARK-47108.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants