Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-6813

Support table name for meta sync in bootstrap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 0.14.0
    • None
    • None

    Description

      Using bootstrap procedure to migrate an existing table into a Hudi table.

      call run_bootstrap(
        table=> "test_db.test_hudi_table",
        table_type=>"COPY_ON_WRITE",
        bootstrap_path=>"XXX",
        base_path=>"XXX",
        rowKey_field=>"device_id",
        partition_path_field=>"p_date,product",
        key_generator_class=>"org.apache.hudi.keygen.ComplexKeyGenerator",
        enable_hive_sync=>true,
        options => 'hoodie.datasource.hive_sync.mode=hms'
      );
      

      After sync to HMS, I get a hudi table which stored as `test_db. unknown ` instead of `test_db.test_hudi_table` in HMS.
      The root cause is not set table configure 'META_SYNC_TABLE_NAME' before start hive sync.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jingzhang Jing Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: