Hello! In previous tutorial we created Hortonworks Sandbox virutal machine in Azure. In this tutorial I will show you how to connect to this VM and how to use Hortonworks stack.
1. Add additional inbound port rules
First of all we must add additional inbound port rules to VM. It will allow us to connect to Ambari or Zeppelin for instance. Please open previously created VM and click to “Networking” tab. In the right side you will find “Add inbound port rule”.
We will create two inboud port rule:
- Port 8080 – for Ambari
- Port 8888 – for Hortonworks Dashboard
In notifications you should see completed task like in the following screen.
Now in “Networking” tab you should also see that your new inboud rules are also visible in the list.
2. Connect to Hortonworks Dasboard and Ambari
Let’s open your favourite browser and open URLs. Pattern is easy: http://<host_ip_address>:<port>
- http://184.108.40.206:8888/ – Hortonworks Dashboard
- http://220.127.116.11:8080/ – Ambari
You can see many Apache projects listed in the left menu in Ambrai as HDFS, YARN, MapReduce2, Tez, Hive and so on… At this moment I will not explain what is the role of each of them and how each works, because you could be scared and discouraged at the beginingat the beginning of your adventure in Big Data world. I will cover and exmplain each of them in the next tutorials with nice example which will help you to understand how it is everything works :).
At this moment the most important is to see the green light before them.
3. Connect to Hortonworks Sandbox virtual machine via SSH
You can also connect to Hortonworks virual machine via SSH. From Windows you can use Putty software for example. If you are using linux (e.g.: Ubuntu) you can just use the Terminal console.
Setup connection to your virtual machine using pattern: <username>@<host_ip_address> (please save the connection for the future).
Username and password are the same as in the moment when you was creating this VM in previous tutorial.
Change user to root. You will be requested for password (in this case please put password for your user, here for pawel).
[pawel@sandbox-host ~]$ sudo su
Next please connect to sandbox-hdp.hortonworks.com which is exposed by 172.17.0.2 IP address:
[root@sandbox-host pawel]# ssh 172.17.0.2
Please type: yes to continue connection attempt. After that you will be informed that you must change the password for root user. Current password for root user is simply: hadoop.
The authenticity of host '172.17.0.2 (172.17.0.2)' can't be established. RSA key fingerprint is SHA256:oCHVVt8XBDItJbjH0XExlhePO93VcXJQGHx5WdiMhLE. RSA key fingerprint is MD5:41:23:bd:19:8f:59:16:da:40:4c:42:7f:52:6f:e5:f3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '172.17.0.2' (RSA) to the list of known hosts. email@example.com's password: You are required to change your password immediately (root enforced) Changing password for root. (current) UNIX password: New password: Retype new password:
When we logged into sandbox we can check if we are able to list the files on root folder in HDFS for instance.
List the files in root folder in HDFS:
[root@sandbox-hdp ~]# hdfs dfs -ls /
You should see the output like this in the following picutre:
After this tutorial you should be able to connect to your Hortonworks Sandbox environment.