Login using Putty for Hive - azure

I created a HDinsight Cluster and was trying to log in to Shell using Putty
<Clustername>-ssh.azurehdinsight.net using the given credentials while creating the Cluster.
Having problems logging using Putty after I gave credentials it's showing access denied.
Are there any other permissions that I need to provide to log in using Putty?

At the time of creating the cluster, you need to select the SSH option and specify the public key. This can then be used to submit jobs by logging in to the head node. I had blogged about it recently
https://nileshgule.blogspot.sg/2017/10/submit-apache-spark-job-from-command.html
Hope this helps

No need any permissions that need to provided to log in using putty.
If you are using the following syntax to connect using putty(you will receive Access denied):
ssh sshuser#clustername-ssh.azurehdinsight.net
Use the following to connect using putty:
sshuser#clustername-ssh.azurehdinsight.net
You can securely connect to the below endpoints in the HDInsight cluster with an SSH client. you may refer Documentation.
You can also try the below method to connect HDInsight cluster using PuTTY.
Goto Configuration -> SSH + Cluster login -> copy the cluster name without ssh -> enter the details in PuTTy and click connect -> enter the password to connect.
Refer the below screenshots for more details.

Related

How to Create a Pig Latin Job in Azure HDInsight Cluster

I just created a free account to Azure and created a hadoop cluster on HDInsight. However, it dose not in anyway show how to launch a Pig client and create pig latin job and run it?
Unfortunately, you cannot use Ambari UI to run pig latin jobs.
Note: To process data using Pig, will need to open an SSH console that is connected to your cluster and then run the pig latin using local mode or mapreduce mode:
If you are using a Windows client computer:
In the Microsoft Azure portal, on the HDInsight Cluster blade for your HDInsight cluster, click Secure Shell, and then in the Secure Shell blade, in the Hostname list, note the Host name for your cluster (which should be your_cluster_name-ssh.azurehdinsight.net).
Open PuTTY, and in the Session page, enter the host name into the Host Name box. Then under Connection type, select SSH and click Open. If a security warning that the host certificate cannot be verified is displayed, click Yes to continue.
When prompted, enter the SSH username and password you specified when provisioning the cluster (not the cluster login username).
If you are using a Mac OS X or Linux client computer:
In the Microsoft Azure portal, on the HDInsight Cluster blade for your HDInsight cluster, click Secure Shell, and then in the Secure Shell blade, in the Hostname list, select the hostname for your cluster. then copy the ssh command that is displayed, which should resemble the following command – you will use this to connect to the head node.
ssh sshuser#your_cluster_name-ssh.azurehdinsight.net
Open a new terminal session, and paste the ssh command, specifying your SSH user name (not the cluster login username).
If you are prompted to connect even though the certificate can’t be verified, enter yes.
When prompted, enter the password for the SSH username.
Once you connected to your cluster, to run pig latin as shown:
You can execute Pig Latin statements:
Using grunt shell or command line
In mapreduce mode or local mode
Either interactively or in batch
Reference: Pig Manual

Cassandra instance by Bitnami created on Azure,connection fails

I've created a VM of Apache Solr by Bitnami on Azure, specifying my username / password in the creation process .
When i run : ssh my_username#my_vm_ip it works
But in the web portal http://my_vm_ip/solr , a popup username/password appears . I use same credentials than SSH and it fails
Any idea?
The application password generated by the Bitnami VM is generated uniquely for each VM, and is shown on the application vm console:
I'm not sure how you'd display the console login screen on Azure, but you can check the boot diagnostics log at least. The banner message is usually stored either in /etc/issue.* or /etc/motd, so I'd check that as well.
The default user name is user.
The default password you need to ssh to your VM and check /var/log/syslog. Search Bitnami, you will get like below:
More information about this, you could check this FAQ.

DC/OS private registry with authentication fails

I got a running DC/OS cluster on Azure and i'm trying to configure it to use private registry credentials.
I'm running Azure Private Registry with admin. I can log in and use the images.
I followed the guide provided by DC/OS but it recommends saving it on the nodes themselves. I want to use Azure File Storage instead.
I saved the config.json file to auth to the loginserver on a blob and provide the URI with deployment configuration.
config.json:
auths:
stageon.azurecr.io:
auth "..."
Now the configuration just keeps running without any output so I assume it's hanging on pulling the image.
I am providing the direct link URL to the file and when I access it through webbrowser it returns the JSON.
Did anyone do something similar before I found this thread for amazon before but I can't seem to get it working.
I've used a customization to acs-engine a few times to push registry credentials to the agent nodes.
This approach makes sure that the credentials will be present even when you add nodes later on.
The code is here: https://github.com/xtophs/acs-engine-1/tree/xtoph-registry. Example cluster API model is at: https://github.com/xtophs/acs-engine-1/blob/xtoph-registry/examples/privateregistry/dcos1.8.4.json

azure linux vm recovery - unable to remote login

forgot user name password for a linux (ubuntu) vm. tried to "Reset Remote Access" from the portal, but it is not helping - more than 30 minutes - it still shown in progress. Tried to do it via azure command line. Created a new user with password, but unable to login. SSH says access denied. Should I do any additional steps?
After creating new user you should also reset your SSH connection. You could refer to Reset Access and Manage Users and Check Disks with the Azure VMAccess Extension for Linux for detailed steps.

How can I find or change my password and login for windows Azure?

It's really big problem for me - ugly UI, where I can't see ssh connection requisites for my new virtual machine instance. Is it possible to change password? Password and login from my manage.windowsazure.com panel is not approach.
I guess you are talking about a Linux VM? When creating a new VM you have to supply a username and password or you can upload an SSH key. The standard username is azureuser. There is no way to reset the password of a VM w/o having access to it.
Update: By now it's possible to create a new User/Password or upload a new SSH key via the new Azure Portal.
Got to https://portal.azure.com
Select your virtual machine
Click on Settings
Select Reset Password
Generate new certificate using this article: http://azure.microsoft.com/en-us/documentation/articles/linux-use-ssh-key/
In Azure management console, go to "CLOUD SERVICES" -> your service -> certificates
Upload you new generated certificate
Now you can login with ssh -i ~/.ssh/[private_key] azureuser#[yourappname].cloudapp.net
Have you tried changing it on the machine.
Login to the Virtual Machine via SSH with your current password. and run chpwd

Resources