Skip to main content

Upsolver Iceberg Auditor CLI

Project description

Iceberg Diagnostics Tool

Overview

The Iceberg Table Analysis CLI Tool evaluates Iceberg tables to identify how Upsolver optimizations can enhance efficiency.
It presents a side-by-side comparison of current metrics against potential improvements in scan durations, file counts, and file sizes, providing a straightforward assessment of optimization opportunities.

Installation

iceberg-diag can be installed using either Brew or PIP, as detailed below:

Using PIP

Prerequisites

  • Python 3.8 or higher: Verify Python's installation:
    python3 --version
    

To install iceberg-diag using PIP, ensure you have the latest version of pip:

pip install --upgrade pip

Then, install the package with pip

pip install iceberg-diag

Using Brew

Execute the following commands to install iceberg-diag via Brew:

brew tap upsolver/iceberg-diag
brew install iceberg-diag

Usage Instructions

iceberg-diag [options]

Command-Line Options

  • -h, --help: Display the help message and exit.
  • --profile PROFILE: Set the AWS credentials profile for the session, defaults to the environment's current settings.
  • --region REGION: Set the AWS region for operations, defaults to the specified profile's default region.
  • --database DATABASE: Set the database name, will list all available iceberg tables if no --table-name provided.
  • --table-name TABLE_NAME: Enter the table name or a glob pattern (e.g., '*', 'tbl_*').
  • --remote: Enable remote diagnostics by sending data to the Upsolver API for processing.
    Provides more detailed analytics and includes information about file size reducations.

Usage

  1. Displaying help information:

     iceberg-diag --help
    
  2. Listing all available databases in profile:

    iceberg-diag --profile <profile>
    
  3. Listing all available iceberg tables in a given database:

    iceberg-diag --profile <profile> --database <database>
    
  4. Running diagnostics on a specific table in a specific AWS profile and region (completely locally):

     iceberg-diag --profile <profile> --region <region> --database <database> --table-name '*'
    
  5. Running diagnostics using remote option

    iceberg-diag --profile <profile> --database <database> --table-name 'prod_*' --remote
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iceberg_diag-0.1.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iceberg_diag-0.1.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file iceberg_diag-0.1.1.tar.gz.

File metadata

  • Download URL: iceberg_diag-0.1.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/23.3.0

File hashes

Hashes for iceberg_diag-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d5fc4adc4219e7f48f94c3c1c309be3256ca7f6a2869960555301f7e8f5b6541
MD5 b469c5d4d2193694c3171ca9b305c1d9
BLAKE2b-256 a955116e3855ecbb76b3a2df2c416cc6d2656f46df90fc9604773b0ca9cb5945

See more details on using hashes here.

File details

Details for the file iceberg_diag-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iceberg_diag-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/23.3.0

File hashes

Hashes for iceberg_diag-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cab92bf4a7dc0a5bcad3413dc00114e54a89e6d1b0595a5e6ed552728bb9991a
MD5 f6f7ae72785d9a3a65910e3224ec90e7
BLAKE2b-256 0e78ac306bba6e1b2390dfe2ccacd3f5b4aa694c8582aab4b55d96d8fc80c655

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page