-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Hadoop-16438 ADLS Gen1 OpenSSL config control #1394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...doop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/TestAdlSdkConfiguration.java
Show resolved
Hide resolved
| try { | ||
| fs = (AdlFileSystem) | ||
| (AdlStorageConfiguration.createStorageConnector(conf)); | ||
| } catch (URISyntaxException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just add the URISyntaxException to the list of exceptions this test may throw and remove the try/catch
| } | ||
|
|
||
| SSLChannelMode sslChannelMode = fs.getAdlClient().getSSLChannelMode(); | ||
| Assert.assertTrue("Channel mode needs to be OpenSSL", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertEquals for the detailed exception message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have re-formatted the test code to reduce redundant code. Please check.
...doop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/TestAdlSdkConfiguration.java
Outdated
Show resolved
Hide resolved
...doop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/TestAdlSdkConfiguration.java
Outdated
Show resolved
Hide resolved
...doop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/TestAdlSdkConfiguration.java
Outdated
Show resolved
Hide resolved
|
|
can you take a look at #970? assuming that went in, how would your patch link up with it? At the very least, we need consistent option values, defaults, error text, so its easiest to document and use |
|
[Sneha]: Config inputs are inline to the above S3 commit. |
|
changes in hadoop code are good.
This means that by default a warning is going to be printed unless openssl is happy. I'm not convinced that is actually useful to most people, and I'm going to make sure that when s3a adds open SSL it isn't going to bother logging at info. However: its in your SDK, so your choice. |
|
+1, committed to trunk. If you want it in earlier versions just cherrypick, retest and provide a PR which merges. I'm assuming you will want to do this, so I'm leaving it open |
Enabling config option to control the SSL channel mode. Possible channel modes being -
(a) OpenSSL
(b) Default_JSE
(c) Default - This is the default choice if the config is not present or is invalid. When set to this, connection creation is attempted in OpenSSL mode and will fallback to Default_JSE mode on any failure.