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

delete base path when failed to run bootstrap procedure

    XMLWordPrintableJSON

Details

    Description

      [run_bootstrap](https://hudi.apache.org/docs/next/procedures#run_bootstrap) procedure is called like this 

      call run_bootstrap(table => 'test_hudi_table', table_type => 'COPY_ON_WRITE', bootstrap_path => 'hdfs://ns1/hive/warehouse/hudi.db/test_hudi_table', base_path => 'hdfs://ns1//tmp/hoodie/test_hudi_table', rowKey_field => 'id', partition_path_field => 'dt'); 

      some exceptional cases this procedure will fail, for example, bootstrap_path is not existed or empty.  The  `base_path` in HDFS was still remained with `.hoodie` directory.

      Though we can still rerun bootstrap procedure and pass `bootstrap_overwrite` parameter, it's better to clean this path that we created after failure.

      Attachments

        Issue Links

          Activity

            People

              shivnarayan sivabalan narayanan
              1365976815@qq.com lvyanquan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: