Skip to content

Instantly share code, notes, and snippets.

@bvaradar
Last active June 7, 2019 00:32
Show Gist options
  • Save bvaradar/ec8a2af4bc06fe74a63825e2e1d6b074 to your computer and use it in GitHub Desktop.
Save bvaradar/ec8a2af4bc06fe74a63825e2e1d6b074 to your computer and use it in GitHub Desktop.
Hoodie CLI output using new CLI
->compactions show all
╔═════════════════════════╤═══════════╤═══════════════════════════════╗
║ Compaction Instant Time │ State │ Total FileIds to be Compacted ║
╠═════════════════════════╪═══════════╪═══════════════════════════════╣
║ 20190605181247 │ COMPLETED │ 1106 ║
╟─────────────────────────┼───────────┼───────────────────────────────╢
║ 20190605115126 │ COMPLETED │ 1204 ║
╟─────────────────────────┼───────────┼───────────────────────────────╢
║ 20190605053033 │ COMPLETED │ 1303 ║
╚═════════════════════════╧═══════════╧═══════════════════════════════╝
->commits show
╔════════════════╤═════════════════════╤═══════════════════╤═════════════════════╤══════════════════════════╤═══════════════════════╤══════════════════════════════╤══════════════╗
║ CommitTime │ Total Bytes Written │ Total Files Added │ Total Files Updated │ Total Partitions Written │ Total Records Written │ Total Update Records Written │ Total Errors ║
╠════════════════╪═════════════════════╪═══════════════════╪═════════════════════╪══════════════════════════╪═══════════════════════╪══════════════════════════════╪══════════════╣
║ 20190605194640 │ 308.8 MB │ 0 │ 366 │ 136 │ 536105 │ 4105 │ 0 ║
╟────────────────┼─────────────────────┼───────────────────┼─────────────────────┼──────────────────────────┼───────────────────────┼──────────────────────────────┼──────────────╢
║ 20190605194640 │ 308.8 MB │ 0 │ 366 │ 136 │ 536105 │ 4105 │ 0 ║
╟────────────────┼─────────────────────┼───────────────────┼─────────────────────┼──────────────────────────┼───────────────────────┼──────────────────────────────┼──────────────╢
║ 20190605053033 │ 59.1 GB │ 0 │ 1303 │ 508 │ 130680275 │ 300918 │ 0 ║
╚════════════════╧═════════════════════╧═══════════════════╧═════════════════════╧══════════════════════════╧═══════════════════════╧══════════════════════════════╧══════════════╝
-> show fsview latest
╔════════════╤══════════════════════════════════════╤════════════════╤═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╤════════════════╤═════════════════╤══════════════════╤═══════════════════════════════════╤═════════════════════════════════════╤════════════════════════════════════════════╤══════════════════════════════════════════════╤════════════════════════════════════╤══════════════════════════════════════╗
║ Partition │ FileId │ Base-Instant │ Data-File │ Data-File Size │ Num Delta Files │ Total Delta Size │ Delta Size - compaction scheduled │ Delta Size - compaction unscheduled │ Delta To Base Ratio - compaction scheduled │ Delta To Base Ratio - compaction unscheduled │ Delta Files - compaction scheduled │ Delta Files - compaction unscheduled ║
╠════════════╪══════════════════════════════════════╪════════════════╪═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╪════════════════╪═════════════════╪══════════════════╪═══════════════════════════════════╪═════════════════════════════════════╪════════════════════════════════════════════╪══════════════════════════════════════════════╪════════════════════════════════════╪══════════════════════════════════════╣
║ 2018/01/02 │ f4e4619e-bcfd-46cb-96df-0c54760a902c │ 20190605181247 │ xxxxxx/2018/01/02/f4e4619e-bcfd-46cb-96df-0c54760a902c_1096_20190605181247.parquet │ 498.5 KB │ 0 │ 0.0 B │ 0.0 B │ 0.0 B │ 0.0 │ 0.0 │ [] │ [] ║
╚════════════╧══════════════════════════════════════╧════════════════╧═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╧════════════════╧═════════════════╧══════════════════╧═══════════════════════════════════╧═════════════════════════════════════╧════════════════════════════════════════════╧══════════════════════════════════════════════╧════════════════════════════════════╧══════════════════════════════════════╝
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment