[ https://issues.apache.org/jira/browse/HADOOP-17725?focusedWorklogId=694605&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-694605 ]
ASF GitHub Bot logged work on HADOOP-17725: ------------------------------------------- Author: ASF GitHub Bot Created on: 12/Dec/21 06:03 Start Date: 12/Dec/21 06:03 Worklog Time Spent: 10m Work Description: virajjasani commented on pull request #3788: URL: https://github.com/apache/hadoop/pull/3788#issuecomment-991774418 Storage account: US-West ``` $ mvn test [INFO] Results: [INFO] [WARNING] Tests run: 356, Failures: 0, Errors: 0, Skipped: 107 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:23 min [INFO] Finished at: 2021-12-12T01:43:57+05:30 [INFO] ------------------------------------------------------------------------ ``` HNS-Sharedkey: ``` $ ./dev-support/testrun-scripts/runtests.sh -c "HNS-SharedKey" [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.953 s [INFO] Finished at: 2021-12-12T01:30:00+05:30 [INFO] ------------------------------------------------------------------------ Running the combination: HNS-SharedKey... ----- Test results ----- [INFO] Results: [INFO] [WARNING] Tests run: 106, Failures: 0, Errors: 0, Skipped: 26 [INFO] Results: [INFO] [WARNING] Tests run: 566, Failures: 0, Errors: 0, Skipped: 566 [INFO] Results: [INFO] [WARNING] Tests run: 263, Failures: 0, Errors: 0, Skipped: 263 Time taken: 1 mins 4 secs. ``` However, integration tests are failing with `StorageException: The account being accessed does not support http` even though I have `enableHttpsTrafficOnly` as true. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 694605) Time Spent: 7h 20m (was: 7h 10m) > Improve error message for token providers in ABFS > ------------------------------------------------- > > Key: HADOOP-17725 > URL: https://issues.apache.org/jira/browse/HADOOP-17725 > Project: Hadoop Common > Issue Type: Improvement > Components: fs/azure, hadoop-thirdparty > Affects Versions: 3.3.0 > Reporter: Ivan Sadikov > Assignee: Viraj Jasani > Priority: Major > Labels: pull-request-available > Fix For: 3.3.2 > > Time Spent: 7h 20m > Remaining Estimate: 0h > > It would be good to improve error messages for token providers in ABFS. > Currently, when a configuration key is not found or mistyped, the error is > not very clear on what went wrong. It would be good to indicate that the key > was required but not found in Hadoop configuration when creating a token > provider. > For example, when running the following code: > {code:java} > import org.apache.hadoop.conf._ > import org.apache.hadoop.fs._ > val conf = new Configuration() > conf.set("fs.azure.account.auth.type", "OAuth") > conf.set("fs.azure.account.oauth.provider.type", > "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider") > conf.set("fs.azure.account.oauth2.client.id", "my-client-id") > // > conf.set("fs.azure.account.oauth2.client.secret.my-account.dfs.core.windows.net", > "my-secret") > conf.set("fs.azure.account.oauth2.client.endpoint", "my-endpoint") > val path = new Path("abfss://contai...@my-account.dfs.core.windows.net/") > val fs = path.getFileSystem(conf) > fs.getFileStatus(path){code} > The following exception is thrown: > {code:java} > TokenAccessProviderException: Unable to load OAuth token provider class. > ... > Caused by: UncheckedExecutionException: java.lang.NullPointerException: > clientSecret > ... > Caused by: NullPointerException: clientSecret {code} > which does not tell what configuration key was not loaded. > > IMHO, it would be good if the exception was something like this: > {code:java} > TokenAccessProviderException: Unable to load OAuth token provider class. > ... > Caused by: ConfigurationPropertyNotFoundException: Configuration property > fs.azure.account.oauth2.client.secret not found. {code} -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org