Public Repository

Last pushed: a year ago
Short Description
TPT data mover with Teradata client installed and tpt API configured.
Full Description

TPT data mover with Teradata client installed and tpt API configured.

Quick Start

docker run -it -v ${PWD}:/common:rw  zhlh/tpt-station /bin/bash

Get Started

Detail steps on loading data file to a Teradata table.

Step 1 Start a container

docker run -it -v /datadir:/data:rw zhlh/tpt-station bash

Step 2 Open a python shell

# In the shell return in Step1 Change to python 2.7 environment
source activate py27
ipython

Step 3 Do the load work in ipython

from tpt.TPT import TPT
tpt = TPT()
tpt.set_datafile_info(datafiles='your_flat_data_file_path', sep=',', has_header=True)
tpt.set_sample_size(100000)
tpt.set_idx_columns(['primary_idx_column_list'])
tpt.set_driver('final_table_name')
tpt.load()
Docker Pull Command
Owner
zhlh

Comments (0)