Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1524

Error to import into hive as textfile on hive 0.13.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.6
    • Component/s: hive-integration
    • Labels:
      None

      Description

      2014-09-17 09:57:39,778 ERROR [main]: tool.ImportTool (ImportTool.java:run(613)) - Encountered IOException running import job: java.io.IOException: Exception thrown in Hive
              at org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:357)
              at org.apache.sqoop.hive.HiveImport.importTable(HiveImport.java:239)
              at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:514)
              at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
              at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
              at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
              at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
              at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
              at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:330)
              ... 9 more
      Caused by: java.lang.NoSuchFieldError: TEXTFILE_INPUT
              at org.apache.hadoop.hive.ql.io.TextFileStorageFormatDescriptor.getInputFormat(TextFileStorageFormatDescriptor.java:32)
              at org.apache.hadoop.hive.ql.parse.StorageFormat.processStorageFormat(StorageFormat.java:92)
              at org.apache.hadoop.hive.ql.parse.StorageFormat.fillStorageFormat(StorageFormat.java:74)
              at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeCreateTable(SemanticAnalyzer.java:10072)
              at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:9403)
              at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:208)
      

        Attachments

        1. diff.patch
          0.7 kB
          Richard

          Activity

            People

            • Assignee:
              richard_zhou Richard
              Reporter:
              richard_zhou Richard
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: