java.io.IOException: Failed to read the table metadata

Stack Overflow | rraghav84 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    having issuses using sqoop import tool from oracle to cassandra

    Stack Overflow | 6 months ago | rraghav84
    java.io.IOException: Failed to read the table metadata
  2. 0

    Error when Importing MySql data to Cassandra using Sqoop

    Google Groups | 12 months ago | Mukesh Kumar
    java.io.IOException: Failed to read the table metadata

    Root Cause Analysis

    1. java.io.IOException

      --cassandra-column-mapping contains an SQL column city that does not exist in the SQL table or query

      at com.datastax.bdp.sqoop.SqoopUtil.validateColumnConsistency()
    2. com.datastax.bdp
      CqlImportJob.configureOutputFormat
      1. com.datastax.bdp.sqoop.SqoopUtil.validateColumnConsistency(SqoopUtil.java:312)
      2. com.datastax.bdp.sqoop.SqoopUtil.setCqlImportOptions(SqoopUtil.java:168)
      3. com.datastax.bdp.sqoop.CqlImportJob.configureOutputFormat(CqlImportJob.java:120)
      3 frames
    3. org.apache.sqoop
      ImportJobBase.runImport
      1. org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:240)
      1 frame
    4. com.datastax.bdp
      SqlManagerAdapter.importTable
      1. com.datastax.bdp.sqoop.SqoopUtil.importTable(SqoopUtil.java:587)
      2. com.datastax.bdp.sqoop.SqlManagerAdapter.importTable(SqlManagerAdapter.java:222)
      2 frames
    5. org.apache.sqoop
      Sqoop.run
      1. org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:497)
      2. org.apache.sqoop.tool.ImportTool.run(ImportTool.java:601)
      3. org.apache.sqoop.Sqoop.run(Sqoop.java:143)
      3 frames
    6. Hadoop
      ToolRunner.run
      1. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      1 frame
    7. org.apache.sqoop
      Sqoop.main
      1. org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
      2. org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
      3. org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
      4. org.apache.sqoop.Sqoop.main(Sqoop.java:236)
      4 frames
    8. com.cloudera.sqoop
      Sqoop.main
      1. com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
      1 frame