Skip to content
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

Unable to connect to history server hosted on Microsoft Azure #65

Open
NileshGule opened this issue Aug 15, 2017 · 3 comments
Open

Unable to connect to history server hosted on Microsoft Azure #65

NileshGule opened this issue Aug 15, 2017 · 3 comments

Comments

@NileshGule
Copy link

I am unable to add the history server link which is hosted on Microsoft Azure HDInsight cloud. I get the error

unexpected HTTP status: 401 Credentials missing or Auth is not Basic

Is there any way to provide the credentials?

@roboxue
Copy link
Contributor

roboxue commented Aug 16, 2017

This is not an Application specific behavior either. (Simply no code is going to return a 401 here in this repo) It's likely being your Azure settings. I know some cloud service forbid certain ports by default, like AWS blocks almost every any port on EMR nodes.

You can provide a -p option to use an open port if you know it, otherwise contact your system admin's for this.

@NileshGule
Copy link
Author

I have a Azure HDInsight cluster with public key access. I can connect to Ambari & other management UI as well as Spark history server using a browser & supplying the authentication parameters. How can I do the same when I want to add the link to History server using SparkLint UI?

@roboxue
Copy link
Contributor

roboxue commented Aug 16, 2017

@NileshGule try modify these lines to add appropriate headers to see if this solves your problem. (I assume Azure uses header in requests to authenticate. (I can't find any doc online yet, and I'm not an Azure user to find out myself. You can probably look at the request using browser developer tool to see how the authentication was done when accessing HistoryServerUI.)

val request = Request(uri = (apiUri / "applications")
.withQueryParam("status", "completed")
.withQueryParam("minDate", new SimpleDateFormat("yyyy-MM-dd").format(minDate)))

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

No branches or pull requests

2 participants