Hive Instantiation Error



0

Hi Team,

I am trying to creating a Data warehouse on Hadoop Cluster  using Apache Spark and Hive. I am trying to instantiate the Hive terminal on YARN cluster which was already as per Apache Spark's session. But i am getting an error.

 

Please find the attached



2 Answer(s)


0

Hi Krishna,

As I can see in the screenshot, you have install the hive in /usr/lib/hive.

$ hive  - command is not working, can be two reason - 1. path provided in the .bashrc is incorrect

                                                                                2. you didn't update the system after updated .bashrc

For 1 reason - use the ls command to check where hive/bin is store and enter the same path in .bashrc

For 2 reason -  use the following command - $ exec bash

Or you can directly run the hive from /hive/bin using the following command -

$ /usr/lib/hive/bin/hive

If you are inside bin directory, you can directly write the command:

$ ./hive

Hope this helps.

Thanks.


0

Hi Abhijit,

I tried the command which you have asked me to do. I am still getting an error. I have attached the screen shot. Can you please give me a call on 2676294431 or Please take my remote of my system using Team Viewer to resolve these errors, I want to practice Hacker day scripts of Hive and Scala.


Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password