Chapter 8. Command-line Tools

Table of Contents

8.1. The clean_release_directory Command
8.2. The check_tungsten_latency Command
8.3. The check_tungsten_online Command
8.4. The check_tungsten_services Command
8.5. The deployall Command
8.6. The ddlscan Command
8.6.1. Optional Arguments
8.6.2. Supported Templates and Usage
8.7. The dsctl Command
8.7.1. dsctl get Command
8.7.2. dsctl set Command
8.7.3. dsctl reset Command
8.7.4. dsctl help Command
8.8. Script
8.9. The load-reduce-check Tool
8.9.1. Generating Staging DDL
8.9.2. Generating Live DDL
8.9.3. Materializing a View
8.9.4. Generating Sqoop Load Commands
8.9.5. Generating Metadata
8.9.6. Compare Loaded Data
8.10. The materialize Command
8.11. The tungsten_merge_logs Script
8.12. The multi_trepctl Command
8.12.1. multi_trepctl Options
8.12.2. multi_trepctl Commands
8.13. The tungsten_newrelic_event Command
8.14. The query Command
8.15. The replicator Command
8.16. The startall Command
8.17. The stopall Command
8.18. The tapi Command
8.19. The thl Command
8.19.1. thl Position Commands
8.19.2. thl list Command
8.19.3. thl index Command
8.19.4. thl purge Command
8.19.5. thl info Command
8.19.6. thl help Command
8.20. The trepctl Command
8.20.1. trepctl Options
8.20.2. trepctl Global Commands
8.20.3. trepctl Service Commands
8.21. The tmonitor Command
8.22. The tpasswd Command
8.23. The tprovision Script
8.24. The tungsten_get_mysql_datadir Script
8.25. The tungsten_health_check Script
8.26. The tungsten_monitor Script
8.27. The tungsten_prep_upgrade Script
8.28. The tungsten_provision_thl Command
8.28.1. Provisioning from RDS
8.28.2. tungsten_provision_thl Reference
8.29. The tungsten_purge_thl Command
8.30. The tungsten_read_master_events Script
8.31. The tungsten_send_diag Script
8.32. The tungsten_skip_seqno Script
8.33. The tungsten_skip_all Command
8.34. The undeployall Command

Tungsten Replicator is supplied with a number of different command-line tools and utilities that help to install manage, control and provide additional functionality on top of the core Tungsten Replicator product.

The content in this chapter provides reference information for using and working with all of these tools. Usage and operation with these tools in particular circumstances and scenarios are provided in other chapters. For example, deployments are handled in Chapter 2, Deployment Overview, although all deployments rely on the tpm command.

Commands related to the deployment

  • tpm — Tungsten package manager

  • ddlscan — Data definition layer scanner and translator

Commands related to the core Tungsten Replicator

  • trepctl — replicator control

  • multi_trepctl — multi-replicator control

  • thl — examine Tungsten History Log contents

Commands related to managing Tungsten Replicator deployments

  • tprovision — provision or reprovision a Replica from an existing Primary or Replica database

  • tungsten_read_master_events — read Primary events to determine the correct log position

Commands related to the Hadoop Deployments

  • load-reduce-check — build DDL, materialize and compare replicated data

  • materialize — materializer of views of replicated data into tables

Commands related to monitoring

  • tmonitor — management and testing of external Prometheus exporters

  • tungsten_monitor — provides a mechanism for monitoring the replicator state

  • tungsten_send_diag — assists with diag and file uploads to Continuent support