Git Product home page Git Product logo

dwh-assessment-extraction-tool's Introduction

[deprecated] Data Warehouse Assessment Extraction Client

This repository is no longer maintained. Assessment Extraction Client has been moved to the dwh-migration-tools repository as part of BigQuery Migration Service. Please follow the BigQuery Migration Assessment documentation for more details on how to use a new tool.

This tool allows to extract meta information from a data warehouse that allows to make an assessment for migration.

License

Copyright 2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Building

Install bazel:

sudo apt-get update
sudo apt-get install bazel

Build an executable of the extraction client:

Make sure the teradata driver jar file terajdbc4.jar is in the same directory of the ExtractionTool_deploy.jar.

Run the extraction tool with the teradata driver

java -cp ExtractionTool_deploy.jar:terajdbc4.jar com/google/cloud/bigquery/dwhassessment/extractiontool/ExtractionTool td-extract --db-address jdbc:teradata://localhost/DBS_PORT=1025,DATABASE=dbc --output tmp  --db-user dbc --db-password dbc --schema-filter db:dbc --skip-sql-scripts users

Extraction tool user guide

The extraction tool is currently intended for approved users that are engaging with GCP technical sales teams.

Step 1: Follow the user guide from the GCP technical sales team and download the Extraction tool binary (i.e., ExtractionTool_deploy.jar) and its run script.

Step 2: Download Teradata JDBC driver into the same directory with the Extraction tool binary.

Step 3: Create a folder for output files and run the Extraction tool:

./run-td-extract.sh -j <terajdbc driver> --db-address <database address> --output <output path> --db-user <db user>

You can also append "--" to specify optional parameters, as

./run-td-extract.sh -j <terajdbc driver> --db-address <database address> --output <output path> --db-user <db user> -- --<optional parameter> <parameter value>

See Optional parameters section for details about those parameters.

Alternatively, ensure that your terajdbc driver is exactly named terajdbc4.jar and run

./dwh-assessment-execution-tool.sh td-extract --db-address <database address> --output <output path> --db-user <db user> --<optional parameter> <parameter value>

Optional Parameters:

--schema-filter The schema filter to apply when extracting schemas from the database. By default, all schemas will be extracted.

  • Example usage: --schema-filter db:(abc|def),table:public_. Only take schemas from tables in the database abc or from tables whose names have the prefix public_.
  • Multiple filters can be defined by repeating the option. Each filter has to match (i.e. AND logic).

--sql-scripts The list of scripts to execute. By default, all available scripts will be executed.

--skip-sql-scripts The list of scripts to skip. By default, all available scripts will be executed.

For additional options to control running, apply filtering, skip schema extraction, etc., please run

./dwh-assessment-extraction-tool.sh td-extract -h

Step 4: The extraction process may take from a few minutes to hours to finish, depending on the amount of data in your database. Share the output files with the PSO Cloud Consultant.

dwh-assessment-extraction-tool's People

Contributors

creativitry avatar cyulysses-corp avatar dawidxc avatar dmorokov avatar dominik-klimczak avatar frsv avatar garrettwu avatar gregflack avatar haselbach avatar kpiotrowski avatar nataliebt avatar tkranjith avatar wojtekaf avatar xiashang0624 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dwh-assessment-extraction-tool's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.