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

后端 未结 11 1865
滥情空心
滥情空心 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: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
    

提交回复
热议问题