You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have triaged this as a bug, then file an issue directly.
Describe the problem you faced
Maybe there is a bug in HoodieSnapshotCopier. When i use HoodieSnapshotCopier to backup a nonpartitioned hudi table , it will threw exception! My application code:
val copier = new HoodieSnapshotCopier();
copier.snapshot(spark.sparkContext, srcBasePath, desBasePath, false);
Code trace:
code in public class HoodieSnapshotCopier implements Serializable { ... }
// also need to copy over partition metadata
Path partitionMetaFile =
new Path(new Path(baseDir, partition), HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE);
...
Path toPartitionPath = new Path(outputDir, partition);
when snapshot a nonpartitioned table, the variable partition value is empty, so new Path(baseDir, partition) with a empty string will throw exception! After I change the code like below, and it work well!
Path partitionMetaFile;
if(partition.isEmpty()) {
partitionMetaFile = new Path(new Path(baseDir), HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE);
}else {
partitionMetaFile = new Path(new Path(baseDir, partition), HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE);
}
...
Path toPartitionPath;
if(partition.isEmpty()) {
toPartitionPath = new Path(outputDir);
} else {
toPartitionPath = new Path(outputDir, partition);
}
Expected behavior
Environment Description
Hudi version :
HUDI version is 0.6.0, and 0.6.1 is still the same.
Spark version :
Hive version :
Hadoop version :
Storage (HDFS/S3/GCS..) :
Running on Docker? (yes/no) :
Additional context
Add any other context about the problem here.
Stacktrace
Add the stacktrace of the error.
The text was updated successfully, but these errors were encountered:
Tips before filing an issue
Have you gone through our FAQs?
Join the mailing list to engage in conversations and get faster support at dev-subscribe@hudi.apache.org.
If you have triaged this as a bug, then file an issue directly.
Describe the problem you faced
Maybe there is a bug in HoodieSnapshotCopier. When i use HoodieSnapshotCopier to backup a nonpartitioned hudi table , it will threw exception! My application code:
Code trace:
code in public class HoodieSnapshotCopier implements Serializable { ... }
when snapshot a nonpartitioned table, the variable partition value is empty, so new Path(baseDir, partition) with a empty string will throw exception! After I change the code like below, and it work well!
Expected behavior
Environment Description
Hudi version :
HUDI version is 0.6.0, and 0.6.1 is still the same.
Spark version :
Hive version :
Hadoop version :
Storage (HDFS/S3/GCS..) :
Running on Docker? (yes/no) :
Additional context
Add any other context about the problem here.
Stacktrace
Add the stacktrace of the error.
The text was updated successfully, but these errors were encountered: