Missing Hive Execution Jar: /usr/local/hadoop/hive/lib/hive-exec-*.jar

后端 未结 11 1863
滥情空心
滥情空心 2021-01-13 13:24

I have Hadoop 1.0.4 running on a single node cluster set up on my Ubuntu machine.

I did the following steps to download and install the hive release



        
相关标签:
11条回答
  • 2021-01-13 14:09

    I resolved the problem myself but not sure what exactly happened.

    By following the process I mentioned in my original question, I created the $HADOOP_HOME/hive but it was giving me a missing jar error.

    So, what I did was: I downloaded hive-0.10.0.tar.gz and extracted it under $HADOOP_HOME. So the newly created folder was $HADOOP_HOME/hive-0.10.0.

    I copied the entire lot of jars under $HADOOP_HOME/hive-0.10.0/lib to $HADOOP_HOME/hive/lib and when I executed next,

    $HADOOP_HOME/hive> bin/hive

    It worked! Please note my $HIVE_HOME=$HADOOP_HOME/hive and $HIVE_HOME/bin is added to path. Hope this helps somebody facing similar problem.

    0 讨论(0)
  • 2021-01-13 14:10

    Just want to post what worked for me (in 2017).

    Using Spark 2.0.2, I had to change my $HIVE_HOME variable (which in my case, constituted me just removing the variable from my .bash_profile.

    Hope this helps someone else.

    0 讨论(0)
  • 2021-01-13 14:11

    I did below in Dec 2017 and it worked.

    1. Copied hive in to hadoop_home directory
    2. Did below in cygwin:

      export HIVE_HOME=$HADOOP_HOME/hive
      export PATH=$HIVE_HOME/bin:$PATH
      
    0 讨论(0)
  • 2021-01-13 14:17

    i have the same issue,and i use the command "source ~/.bashrc"

    problem resolved!

    0 讨论(0)
  • 2021-01-13 14:19

    The tar file apache-hive-0.13.1-src.tar.gz has a missing lib folder You can download hive-0.12.0.tar.gz and move the lib folder to apache-hive-0.13.1-src folder. Now hive should be working.

    0 讨论(0)
  • 2021-01-13 14:20

    Here is another post for what worked for me in 2017.

    This issue happened to me because of the way I (a beginner) extracted the Hive tar file. I downloaded "hive-2.3.0" from us.apache.org and extracted the file to /usr/local/hive. The jar was expected to be in /usr/local/hive/lib but for some reasons it was in /usr/local/hive**/bin/**lib. In other words, there was an extra "/bin" directory under /hive which contained all of the files that should have been directly under /hive. I fixed this problem by renaming the extra /bin directory to "/bin2," moving all the files from within /bin2 to the main /hive directory, and removing the unnecessary and now empty /bin2 directory. Once the .jar file was in the correct directory, there were no problems running Hive! Here are the commands I used:

        cd /usr/local
        mv hive/bin hive/bin2
        mv hive/bin2/* hive
        rm -r hive/bin2
    
    0 讨论(0)
提交回复
热议问题