title: How to read ORC file in hadoop streaming?
body: <p>I'd like to read ORC files in my mapreduce on Python. I try to run it:</p>
  
  <pre><code>hadoop jar /usr/lib/hadoop/lib/hadoop-streaming-2.6.0.2.2.6.0-2800.jar 
  -file /hdfs/price/mymapper.py 
  -mapper '/usr/local/anaconda/bin/python mymapper.py' 
  -file /hdfs/price/myreducer.py 
  -reducer '/usr/local/anaconda/bin/python myreducer.py' 
  -input /user/hive/orcfiles/* 
  -libjars /usr/hdp/2.2.6.0-2800/hive/lib/hive-exec.jar 
  -inputformat org.apache.hadoop.hive.ql.io.orc.OrcInputFormat 
  -numReduceTasks 1 
  -output /user/hive/output
  </code></pre>
  
  <p>But I get error:</p>
  
  <pre><code>-inputformat : class not found : org.apache.hadoop.hive.ql.io.orc.OrcInputFormat
  </code></pre>
  
  <p>I found a similar question <a href="https://stackoverflow.com/questions/30319344/orcnewinputformat-as-a-inputformat-for-hadoop-streaming">OrcNewInputformat as a inputformat for hadoop streaming</a> but answer is not clear</p>
  
  <p>Please, give me example how to read ORC files correctly in hadoop streaming.</p>