title: It seems as though you are running sqoop with a JRE - But JAVA_HOME set to JDK
body: <p>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:</p>
  
  <pre><code>sqoop import --connect jdbc:mysql://localhost/test --table sales -m 1
  
  13/04/19 10:35:24 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /opt/hadoop/hadoop-1.0.4
  13/04/19 10:35:24 ERROR orm.CompilationManager: It seems as though you are running sqoop with a JRE.
  13/04/19 10:35:24 ERROR orm.CompilationManager: Sqoop requires a JDK that can compile Java code.
  13/04/19 10:35:24 ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.
  13/04/19 10:35:24 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Could not start Java compiler.
      at org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:176)
  </code></pre>
  
  <p>I googled to find an answer to this error and most answer point to setting JAVA_HOME to your JDK, which I have (in ~/.bashrc [on Ubuntu]).</p>
  
  <pre><code>$ echo $JAVA_HOME
  /usr/lib/jvm/jdk1.7.0_15
  </code></pre>
  
  <p>These are the other variables I set:</p>
  
  <pre><code>export HADOOP_COMMON_HOME=/opt/hadoop/hadoop-1.0.4
  export HADOOP_MAPRED_HOME=/opt/hadoop/hadoop-1.0.4
  export SQOOP_HOME=/opt/hadoop/sqoop-1.4.3.bin__hadoop-1.0.0
  export PATH=$PATH:$SQOOP_HOME/bin
  </code></pre>
  
  <p>I also added the mysql jdbc driver to the lib folder.</p>
  
  <p>Any ideas why I get this error? 
  Thanks in advance,
  Diddy</p>