GitHub user rawkintrevo opened a pull request:
https://github.com/apache/zeppelin/pull/1323
[HOTFIX] Add logins authentication for hdfs file interpreter
### What is this PR for?
When attempting to login to a webhdfs file system with credentials as in:
`https://<username>:<password>@<host>:<port>`
We get a `ava.io.IOException: Server returned HTTP response code: 401 for
URL: ....`
This has to do with how Java authorizes a URL. A simple fix is applied to
handle this.
### What type of PR is it?
Improvement
### Todos
* [x] - Apply Patch
### What is the Jira issue?
No JIRA issue, this was required functionality for a use case. I expect
others will require this too.
### How should this be tested?
Login to a webhdfs that requires authentication. It works.
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update?
No
* Is there breaking changes for older versions?
No
* Does this needs documentation?
I don't think so- the intuitive way to pass username/login is
https://`user`:`password`@host. This makes that work.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rawkintrevo/incubator-zeppelin hdfs-auth
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/1323.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1323
----
commit 85921185b0b7dc72b18b4bdceb9ba711ce3ff0d5
Author: rawkintrevo <[email protected]>
Date: 2016-08-11T20:41:29Z
[HOTFIX] Add Logins for hdfs file interpreter
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---