<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Using Pig to Load data  from avro backed hive table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/38435#M19298</link>
    <description>&lt;P&gt;Thanks Harsh. Yes my key &amp;nbsp;was &amp;nbsp;a void .So I changed the avro output &amp;nbsp;to use keyOutputformat (earlier value is now the key) from Avrokeyvalueoutputformat and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nishanth&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 00:33:58 GMT</pubDate>
    <dc:creator>Nishan</dc:creator>
    <dc:date>2016-03-08T00:33:58Z</dc:date>
    <item>
      <title>Using Pig to Load data  from avro backed hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/37411#M19296</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to load data from from avro backed hive table in &amp;nbsp;a pig script using the below command&amp;nbsp;&lt;/P&gt;&lt;P&gt;A = LOAD 'dev.avro_test' USING &amp;nbsp;org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;We are running into the below error.Request to give some direction.We are using CDH 5.5.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2016-02-12 19:21:26,515 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Type void not present&lt;BR /&gt;Failed to parse: Type void not present&lt;BR /&gt;at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:198)&lt;BR /&gt;at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1688)&lt;BR /&gt;at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1421)&lt;BR /&gt;at org.apache.pig.PigServer.parseAndBuild(PigServer.java:354)&lt;BR /&gt;at org.apache.pig.PigServer.executeBatch(PigServer.java:379)&lt;BR /&gt;at org.apache.pig.PigServer.executeBatch(PigServer.java:365)&lt;BR /&gt;at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:140)&lt;BR /&gt;at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:769)&lt;BR /&gt;at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:372)&lt;BR /&gt;at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:198)&lt;BR /&gt;at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:173)&lt;BR /&gt;at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84)&lt;BR /&gt;at org.apache.pig.Main.run(Main.java:484)&lt;BR /&gt;at org.apache.pig.Main.main(Main.java:158)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:497)&lt;BR /&gt;at org.apache.hadoop.util.RunJar.run(RunJar.java:221)&lt;BR /&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:136)&lt;BR /&gt;Caused by: java.lang.TypeNotPresentException: Type void not present&lt;BR /&gt;at org.apache.hive.hcatalog.data.schema.HCatFieldSchema$Type.getPrimitiveHType(HCatFieldSchema.java:92)&lt;BR /&gt;at org.apache.hive.hcatalog.data.schema.HCatFieldSchema.&amp;lt;init&amp;gt;(HCatFieldSchema.java:226)&lt;BR /&gt;at org.apache.hive.hcatalog.data.schema.HCatSchemaUtils.getHCatFieldSchema(HCatSchemaUtils.java:122)&lt;BR /&gt;at org.apache.hive.hcatalog.data.schema.HCatSchemaUtils.getHCatFieldSchema(HCatSchemaUtils.java:115)&lt;BR /&gt;at org.apache.hive.hcatalog.common.HCatUtil.getHCatFieldSchemaList(HCatUtil.java:151)&lt;BR /&gt;at org.apache.hive.hcatalog.common.HCatUtil.getTableSchemaWithPtnCols(HCatUtil.java:184)&lt;BR /&gt;at org.apache.hive.hcatalog.pig.HCatLoader.getSchema(HCatLoader.java:216)&lt;BR /&gt;at org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOLoad.java:175)&lt;BR /&gt;at org.apache.pig.newplan.logical.relational.LOLoad.&amp;lt;init&amp;gt;(LOLoad.java:89)&lt;BR /&gt;at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:853)&lt;BR /&gt;at org.apache.pig.parser.LogicalPlanGenerator.load_clause(LogicalPlanGenerator.java:3568)&lt;BR /&gt;at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1625)&lt;BR /&gt;at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:1102)&lt;BR /&gt;at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:560)&lt;BR /&gt;at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:421)&lt;BR /&gt;at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:188)&lt;BR /&gt;... 19 more&lt;BR /&gt;2016-02-12 19:21:26,518 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Type void not present&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:03:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/37411#M19296</guid>
      <dc:creator>Nishan</dc:creator>
      <dc:date>2022-09-16T10:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pig to Load data  from avro backed hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/38039#M19297</link>
      <description>What's the DESCRIBE output of your avro_test table? If it includes a VOID column type, HCatalog currently does not support that.</description>
      <pubDate>Sun, 28 Feb 2016 16:19:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/38039#M19297</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-02-28T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Pig to Load data  from avro backed hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/38435#M19298</link>
      <description>&lt;P&gt;Thanks Harsh. Yes my key &amp;nbsp;was &amp;nbsp;a void .So I changed the avro output &amp;nbsp;to use keyOutputformat (earlier value is now the key) from Avrokeyvalueoutputformat and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nishanth&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 00:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Using-Pig-to-Load-data-from-avro-backed-hive-table/m-p/38435#M19298</guid>
      <dc:creator>Nishan</dc:creator>
      <dc:date>2016-03-08T00:33:58Z</dc:date>
    </item>
  </channel>
</rss>

