It seems as though you are running sqoop with a JRE - But JAVA_HOME set to JDK

后端 未结 3 948
陌清茗
陌清茗 2021-01-13 22:16

I tried to set up sqoop (sqoop-1.4.3.bin__hadoop-1.0.0) on Ubuntu. I can run the basic sqoop help etc without problems. When I run the following I get an error:



        
3条回答
  •  花落未央
    2021-01-13 22:32

    I had the same issue on Ubuntu.

    My $JAVA_HOME was correctly set to /usr/lib/jvm/java-7-openjdk-amd64, but looking into /usr/lib/jvm/java-7-openjdk-amd64/bin I noticed that "javac" was not there. That's what Sqoop needs but could not find.

    So the problem was simply that my installation of Java came without Java compiler. The solution was then very simple:

    sudo apt-get install openjdk-7-jdk
    

提交回复
热议问题