title: Installing RHadoop on a Hadoop Cluster
body: <p>I am trying to install RHadoop on top of my Hadoop cluster. While installing some of the required packages I am facing the following error:</p>
  
  <pre><code>&gt; install.packages("Megh/rmr2_3.3.1.tar.gz")
  Installing package into ‘/usr/lib64/R/library’
  (as ‘lib’ is unspecified)
  inferring 'repos = NULL' from 'pkgs'
  Error in rawToChar(block[seq_len(ns)]) :
    embedded nul in string: 'rmr2/man/fromdfstodfs.Rd\0\0\0\0erties\n i-_". '
  Warning message:
  In install.packages("Megh/rmr2_3.3.1.tar.gz") :
    installation of package ‘Megh/rmr2_3.3.1.tar.gz’ had non-zero exit status
  &gt;
  
  &gt; install.packages("Megh/plyrmr_0.6.0.tar.gz")
  Installing package into ‘/usr/lib64/R/library’
  (as ‘lib’ is unspecified)
  inferring 'repos = NULL' from 'pkgs'
  Warning in untar2(tarfile, files, list, exdir, restore_times) :
    checksum error for entry 'plyrmr/man/as.data.framed'
  Warning in readBin(con, "raw", n = 512L) :
    invalid or incomplete compressed data
  Error in untar2(tarfile, files, list, exdir, restore_times) :
    incomplete block on file
  Warning message:
  In install.packages("Megh/plyrmr_0.6.0.tar.gz") :
    installation of package ‘Megh/plyrmr_0.6.0.tar.gz’ had non-zero exit status
  </code></pre>
  
  <p>I Have also installed RHive on the cluster. I'm able to execute relatively smaller queries through RHive but larger queries fail:</p>
  
  <pre><code>&gt; rhive.query("SELECT COUNT(*) FROM tradehistory")
  Error: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask
  &gt; rhive.query("SELECT tradeno FROM tradehistory LIMIT 10")
      tradeno
  1  34232193
  2  34232198
  3  34232199
  4  34232200
  5  34232201
  6  34232202
  7  34232203
  8  34232204
  9  34232205
  10 34232206
  </code></pre>
  
  <p>If anybody has any idea please help me out with this! Thanks a lot in advance!</p>