Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HDP Migration Lab - first instruction 'ssh node1' fails

avatar
Contributor

I've begun the HDP Migration Lab, and the very first instruction (after logging into the VM as root, is to ssh into node1) fails and returns this error message: ssh:connect to host node1 port 22: No route to host. The documented instructions (in Installing HDP) seem to be missing one or more critical preceeding instructions.

In the /etc/hosts file, node1 has the IP address 172.17.0.5. After installing nmap, and running 'nmap -sS -F 172.17.0.5' the remitted message states that 'Host seems down'. And 'nmap -Pn 172.17.0.5' remits the message that '0 hosts up'. These commands appear to indicate that node1 (docker container) is not running.

In the root home directory, there is an install_course.sh script. Thinking that running this script is the missing initial instruction, I ran that script, but it failed with the following error message: Usage: install_course.sh <course_id>. What value must be assigned to course_id in order for that script to execute successfully?

1 ACCEPTED SOLUTION

avatar
Super Collaborator

I guess you got the wrong setup guide. Here is the right setup guide:

https://s3-us-west-1.amazonaws.com/setup-guides/HDPOperationsMigration-ManageAmbari-2.1-Downloadable...

BTW, it is a pretty old course based on HDP2.1. It is a subset of main HDP admin course. I would recommend you, to try latest HDP Admin course instead.

Thanks,

Manish

View solution in original post

10 REPLIES 10

avatar
Contributor

The documented instructions are not in 'Installing HDP' but in the 'Download Vm' guide.

avatar
Super Collaborator

Can you check whether you have following scripts on your ubuntu VM:

/root/.sys/fix_network.sh

/root/.sys/admin_course.sh

If you find them then please execute them in the same order. It should fix the issue.

avatar

@Charles Clifford can you please provide a link to the HDP Migration Lab? Which VM are you using (2.4 Sandbox)?

avatar
Contributor

Rafeal, all links to all self-paced lectures and labs for the HDP Admin training are found within this URL

https://ilearning.seertechsolutions.com/lmt/clmslearningpathdetails.prmain?in_sessionId=50225380985J...

This is the URL to the 'Download VM' lecture, which contains the installation setup suite of instructions

https://content.seertechsolutions.com/ilearn/lmsapi/Oracle_CMI_Adapter.html?starting_url=https%3A%2F...

The installation instructions are the preliminary tasks which must be completed successfully prior to starting the HDP Migration Lab.

The URL for downloading the VM is

http://tinyurl.com/basewestrev2

avatar
Contributor

@manish

There is no such file /root/.sys/fix_network.sh, nor /root/.sys/admin_course.sh on the VM, nor does /root/.sys exist.

The /root/ directory does contain an install_course.sh <course_id>, which requires a value assigned to the course_id input parameter in order to execute successfully. The value of course_id is likely the identity of the repository from GitHub which contains the commands to build the classroom lab. The 'Download VM' guide makes not mention of this script nor the course_id.

There is this script /root/scripts/admin_course.sh and when it is executed it fails after attempting to start node1. The error messages are:

Unable to find image 'hwx/ambari_server' locally

.... Invalid namespace name (hwx), ....

Error: No such image or container: node1

Apparently, the script can not find the docker/container files it is looking for, and so is unable to start nodes 1-5. The /root/dockerfiles directory contains sub-directories specific to various types of nodes (ambari_server_node, hdp_node, etc.).

The /root/hwx directory exists, but it is empty.

avatar
Super Collaborator

Can you provide me the link to the setup guide or if you could attach the setup guide here?

avatar
Contributor

All links to all self-paced lectures and labs for the HDP Admin training are found within this URL

https://ilearning.seertechsolutions.com/lmt/clmslearningpathdetails.prmain?in_sessionId=50225380985J...

This is the URL to the 'Download VM' lecture, which contains the installation setup suite of instructions

https://content.seertechsolutions.com/ilearn/lmsapi/Oracle_CMI_Adapter.html?starting_url=https%3A%2F...

It is not possible to download the lecture, but to review that installation instructions, please see below. My progress stalls at step 9.2 Installation Steps

  • 8. Start the VM
    • 1. Click the Play virtual machine link to start the VM.
    • 2. Wait for the VM to start - it may take several minutes. When the VM has started successfully, you should see the following login screen:
    • 3. Login as the root user (by clicking on train). The password is hadoop.
  • 9. Check whether you can login to 4 different CentOS machines named node1, node2, node3 and node4.
    • 1. Click on Terminal icon on left-hand-side taskbar (3rd icon from top):
    • 2. Connect to the first machine using following command, password is ‘hadoop’: root@ubuntu:~# ssh node1
    • 3. Type ‘exit’ to close the connection to node1 and repeat above step for node2, node3 and node4.
Thanks,
Charles

avatar
Super Collaborator

I guess you got the wrong setup guide. Here is the right setup guide:

https://s3-us-west-1.amazonaws.com/setup-guides/HDPOperationsMigration-ManageAmbari-2.1-Downloadable...

BTW, it is a pretty old course based on HDP2.1. It is a subset of main HDP admin course. I would recommend you, to try latest HDP Admin course instead.

Thanks,

Manish

avatar
Contributor

@manish

Thanks for your feedback. I've downloaded the guide you have recommended and I've downloaded the correct VM. The ssh node1 command completes successfully using the correct VM.

BTW - the HDP Admin course which I am engaging is the only version of the course provided at Hortonworks partners portal. As such, I do not have discretion in choosing which version of the Admin course to engage. If the latest HDP Admin course were available then I'd certainly adopt your recommendation. Perhaps the disparity between the current HDP course content and the HDP course content available through the partner portal will be rectified sometime soon.