The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Sqoop Forum

Sqoop using LZO compression (YARN)

  • #45390
    Chiew Yea Kuek
    Participant

    Hi All,

    Previously I tested to sqoop data into hive using LZO compression (Hadoop 1), it will create the LZO index file automatically. When I tested to sqoop data into hive using Hadoop 2 (YARN), it will hit error as below when creating the LZO index file.

    2013-12-10 02:28:32,246 INFO [main] org.apache.hadoop.mapred.MapTask: Processing split: hdfs://sandbox:8020/user/oozie/temp/RawDimAgent/part-m-00000.lzo:0+258561
    2013-12-10 02:28:32,267 INFO [main] com.hadoop.mapreduce.LzoSplitRecordReader: Closing input stream after reading 0 blocks from hdfs://sandbox:8020/user/oozie/temp/RawDimAgent/part-m-00000.lzo
    2013-12-10 02:28:32,268 INFO [main] org.apache.hadoop.mapred.MapTask: Ignoring exception during close for org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader@32c26ede
    java.lang.NullPointerException
    at com.hadoop.mapreduce.LzoSplitRecordReader.close(LzoSplitRecordReader.java:127)
    at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.close(MapTask.java:499)
    at org.apache.hadoop.mapred.MapTask.closeQuietly(MapTask.java:1982)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:772)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:339)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:162)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:157)
    2013-12-10 02:28:32,272 FATAL [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected
    at com.hadoop.mapreduce.LzoSplitRecordReader.initialize(LzoSplitRecordReader.java:47)
    at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.initialize(MapTask.java:524)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:762)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:339)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:162)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:157)

    Anyone experience this? Appreciate your input. Thanks a lot !

    Regards,
    KCYea

  • Author
    Replies
  • #45489
    Robert Molina
    Keymaster

    Hi Chiew,
    What version of LZO are you using?

    Regards,
    Robert

    #45516
    Chiew Yea Kuek
    Participant

    Hi Robert,

    I am using the LZO that pre-installed in the hortonworks sandbox. It is hadoop-lzo-0.5.0.jar, so I believe it is version 0.5. Do you have any clue on this?

    Regards,
    CYea

    #46481
    Robert Molina
    Keymaster

    Hi Cyea,
    Can you run a regular mapreduce job with lzo compression?

    Regards,
    Robert

The topic ‘Sqoop using LZO compression (YARN)’ is closed to new replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.