Starting Hosts and Roles in Cloudera VM

Long ago, while I was running Cloudera VM 5.10.0.0, I thought to download the most recent version (of that time) to see what modifications or new features were added. I downloaded the VM 5.12.0 and attempted to access Hive and Impala. Because the daemons were not operational, I was unable to complete the task.

I received the following error:
Exception in thread “main” java.lang.RunTimeException: java.net.ConnectException
ConnectionException: Connection refused;

3_ConnectionRefusedHive

Even in Impala, the daemon is not got connected to Hive metastore.

4_ConnectionRefusedImpala
It took some time to figure out what was required.

This post will help those beginners who is struggling in starting up the daemon services or hosts in Cloudera VM versions.

1) Go to Cloudera Manager.
Open the browser and type the URL “quickstart.cloudera:7180/cmf/login.

1_ClouderaManagerBeforeLogin

2) Enter the credentials. The default username and password will be “cloudera/cloudera”.

2_ClouderaManagerLogin

3) Once you logged into the “Cloudera Manager”, at the top menu, you’ll see “Hosts” tab. Once you click on it you’ll see the menu-option “All Hosts”. You can either click on “All Hosts” or “Roles” to see the status of the deamons.

RolesStart

4) The “quickstart.cloudera” VM is visible and you can see the status of the “Commission State” of the single node/host which usually be “Commission” unless decommissioned by you. Select the node and click on “Actions for Selected(1)”. 

RolesStart2

5) Once you click on the “Actions for Selected”, click on the option “Start Roles on Hosts”. This will invoke a dialog box which states you are about to start all the daemon services. If you do not want all the services, you can abort even when the services of the specific daemons are starting.

RolesStart3

6) Click on “Confirm” to start the services. This will take a while to start all the daemon services including Hive and Impala.

RolesStart4

7) You need not to perform any action while it’s starting. You’ll be able to see if the services are started successfully or if there is any error.

AllTheServicesAreRunning

8) Once services are UP, go to the terminal and see if you are able to connect to “Hive” and “Impala”.

BothHiveImpalaRunning

Hope you find this article helpful.

Please subscribe for more interesting updates.

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s