title: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask
body: <p>I am facing problem in executing CONDITIONAL QUERIES IN HiveQL.The basic <code>select * from tablename</code> statement works fine.
      The error is :</p>
  
  <pre><code>Total MapReduce jobs = 1
  Launching Job 1 out of 1
  Number of reduce tasks determined at compile time: 1
  In order to change the average load for a reducer (in bytes):
    set hive.exec.reducers.bytes.per.reducer=&lt;number&gt;
  In order to limit the maximum number of reducers:
    set hive.exec.reducers.max=&lt;number&gt;
  In order to set a constant number of reducers:
    set mapred.reduce.tasks=&lt;number&gt;
  java.net.ConnectException: Call to /0.0.0.0:8021 failed on connection exception: java.net.ConnectException: Connection refused
          at org.apache.hadoop.ipc.Client.wrapException(Client.java:1134)
          at org.apache.hadoop.ipc.Client.call(Client.java:1110)
          at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:226)
          at org.apache.hadoop.mapred.$Proxy5.getProtocolVersion(Unknown Source)
          at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:398)
          at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:384)
          at org.apache.hadoop.mapred.JobClient.createRPCProxy(JobClient.java:501)
          at org.apache.hadoop.mapred.JobClient.init(JobClient.java:486)
          at org.apache.hadoop.mapred.JobClient.&lt;init&gt;(JobClient.java:469)
          at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:655)
          at org.apache.hadoop.hive.ql.exec.MapRedTask.execute(MapRedTask.java:123)
          at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:130)
          at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
          at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1063)
          at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:900)
          at org.apache.hadoop.hive.ql.Driver.run(Driver.java:748)
          at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:209)
          at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:286)
          at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:516)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
  Caused by: java.net.ConnectException: Connection refused
          at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
          at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
          at org.apache.hadoop.net.SocketIOWithTimeout.connect(
  ....
  Job Submission failed with exception 'java.net.ConnectException(Call to /0.0.0.0:8021 failed on connection exception: java.net.ConnectException: Connection refused)'
  FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask
  </code></pre>
  
  <p>I have tried from both Eclipse IDE and Hive shell .The output is same. Please Help!</p>