@ShellComponent public class HoodieSyncValidateCommand extends Object
| Constructor and Description |
|---|
HoodieSyncValidateCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
validateSync(String mode,
String srcDb,
String tgtDb,
int partitionCount,
String hiveServerUrl,
String hiveUser,
String hivePass) |
@ShellMethod(key="sync validate",
value="Validate the sync by counting the number of records")
public String validateSync(@ShellOption(value="--mode",defaultValue="complete",help="Check mode")
String mode,
@ShellOption(value="--sourceDb",defaultValue="rawdata",help="source database")
String srcDb,
@ShellOption(value="--targetDb",defaultValue="dwh_hoodie",help="target database")
String tgtDb,
@ShellOption(value="--partitionCount",defaultValue="5",help="total number of recent partitions to validate")
int partitionCount,
@ShellOption(value="--hiveServerUrl",help="hiveServerURL to connect to")
String hiveServerUrl,
@ShellOption(value="--hiveUser",defaultValue="",help="hive username to connect to")
String hiveUser,
@ShellOption(value="--hivePass",defaultValue="",help="hive password to connect to")
String hivePass)
throws Exception
ExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.