Difference between revisions of "SQWareProduction:hbase"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 1: | Line 1: | ||
− | {{SQWareProductionPresSgbd|hbase| | + | {{SQWareProductionPresSgbd|hbase|Hbs|hbs}} |
== bin == | == bin == | ||
=== sqwhbs_GatherIndicators.ksh === | === sqwhbs_GatherIndicators.ksh === | ||
− | Script $ | + | Script $gvsqw_HbsBin/bin/sqwhbs_GatherIndicators.ksh:<br> |
{{SQWareProduction_sqwhbs_GatherIndicators.ksh_presentation}} | {{SQWareProduction_sqwhbs_GatherIndicators.ksh_presentation}} | ||
[[SQWareProduction:hbase:bin:sqwhbs_GatherIndicators.ksh|See the detailed help for sqwhbs_GatherIndicators.ksh]]<br><br> | [[SQWareProduction:hbase:bin:sqwhbs_GatherIndicators.ksh|See the detailed help for sqwhbs_GatherIndicators.ksh]]<br><br> | ||
=== sqwhbs_NetBackup.ksh === | === sqwhbs_NetBackup.ksh === | ||
− | Script $ | + | Script $gvsqw_HbsBin/bin/sqwhbs_NetBackup.ksh:<br> |
{{SQWareProduction_sqwhbs_NetBackup.ksh_presentation}} | {{SQWareProduction_sqwhbs_NetBackup.ksh_presentation}} | ||
[[SQWareProduction:hbase:bin:sqwhbs_NetBackup.ksh|See the detailed help for sqwhbs_NetBackup.ksh]]<br><br> | [[SQWareProduction:hbase:bin:sqwhbs_NetBackup.ksh|See the detailed help for sqwhbs_NetBackup.ksh]]<br><br> | ||
=== sqwhbs_ParallelRun.ksh === | === sqwhbs_ParallelRun.ksh === | ||
− | Script $ | + | Script $gvsqw_HbsBin/bin/sqwhbs_ParallelRun.ksh:<br> |
{{SQWareProduction_sqwhbs_ParallelRun.ksh_presentation}} | {{SQWareProduction_sqwhbs_ParallelRun.ksh_presentation}} | ||
[[SQWareProduction:hbase:bin:sqwhbs_ParallelRun.ksh|See the detailed help for sqwhbs_ParallelRun.ksh]]<br><br> | [[SQWareProduction:hbase:bin:sqwhbs_ParallelRun.ksh|See the detailed help for sqwhbs_ParallelRun.ksh]]<br><br> | ||
=== sqwhbs_RunJob.ksh === | === sqwhbs_RunJob.ksh === | ||
− | Script $ | + | Script $gvsqw_HbsBin/bin/sqwhbs_RunJob.ksh:<br> |
{{SQWareProduction_sqwhbs_RunJob.ksh_presentation}} | {{SQWareProduction_sqwhbs_RunJob.ksh_presentation}} | ||
[[SQWareProduction:hbase:bin:sqwhbs_RunJob.ksh|See the detailed help for sqwhbs_RunJob.ksh]]<br><br> | [[SQWareProduction:hbase:bin:sqwhbs_RunJob.ksh|See the detailed help for sqwhbs_RunJob.ksh]]<br><br> | ||
Line 26: | Line 26: | ||
== etc == | == etc == | ||
=== sqwhbs_CreInst_CrontabRef.cfg === | === sqwhbs_CreInst_CrontabRef.cfg === | ||
− | Configuration file $ | + | Configuration file $gvsqw_HbsBin/../etc/sqwhbs_CreInst_CrontabRef.cfg:<br> |
{{SQWareProduction_sqwhbs_CreInst_CrontabRef.cfg_presentation}} | {{SQWareProduction_sqwhbs_CreInst_CrontabRef.cfg_presentation}} | ||
<br> | <br> | ||
Line 32: | Line 32: | ||
=== sqwhbs_CreInst_Jobs.cfg === | === sqwhbs_CreInst_Jobs.cfg === | ||
− | Configuration file $ | + | Configuration file $gvsqw_HbsBin/../etc/sqwhbs_CreInst_Jobs.cfg:<br> |
{{SQWareProduction_sqwhbs_CreInst_Jobs.cfg_presentation}} | {{SQWareProduction_sqwhbs_CreInst_Jobs.cfg_presentation}} | ||
<br> | <br> | ||
Line 38: | Line 38: | ||
=== sqwhbs_GlobalVar.cfg === | === sqwhbs_GlobalVar.cfg === | ||
− | Configuration file $ | + | Configuration file $gvsqw_HbsBin/../etc/sqwhbs_GlobalVar.cfg:<br> |
{{SQWareProduction_sqwhbs_GlobalVar.cfg_presentation}} | {{SQWareProduction_sqwhbs_GlobalVar.cfg_presentation}} | ||
<br> | <br> | ||
− | {{SQWareProductionSurchargeVar|hbase| | + | {{SQWareProductionSurchargeVar|hbase|Hbs|sqwhbs_GlobalVar.cfg}} |
[[SQWareProduction:hbase:etc:sqwhbs_GlobalVar.cfg|See the detailed help for sqwhbs_GlobalVar.cfg]]<br><br> | [[SQWareProduction:hbase:etc:sqwhbs_GlobalVar.cfg|See the detailed help for sqwhbs_GlobalVar.cfg]]<br><br> | ||
=== .profile === | === .profile === | ||
− | Sample file for .profile $ | + | Sample file for .profile $gvsqw_HbsBin/../etc/.profile:<br> |
Sample of lines to add to .profile of hbase users.<br> | Sample of lines to add to .profile of hbase users.<br> | ||
[[SQWareProduction:hbase:etc:.profile|See the detailed help for .profile]]<br> | [[SQWareProduction:hbase:etc:.profile|See the detailed help for .profile]]<br> | ||
=== .profile_confort === | === .profile_confort === | ||
− | File to put aliases $ | + | File to put aliases $gvsqw_HbsBin/../etc/.profile_confort:<br> |
Contains confort aliases of SQWareProduction for RDBMS hbase.<br> | Contains confort aliases of SQWareProduction for RDBMS hbase.<br> | ||
− | {{SQWareProductionSurchargeConfort|hbase| | + | {{SQWareProductionSurchargeConfort|hbase|Hbs}} |
<br> | <br> | ||
[[SQWareProduction:hbase:etc:.profile_confort|See the detailed help for .profile_confort]]<br><br> | [[SQWareProduction:hbase:etc:.profile_confort|See the detailed help for .profile_confort]]<br><br> | ||
Line 60: | Line 60: | ||
== lib == | == lib == | ||
=== sqwhbs_GatherIndicators.lib === | === sqwhbs_GatherIndicators.lib === | ||
− | shell functions library $ | + | shell functions library $gvsqw_HbsBin/../lib/sqwhbs_GatherIndicators.lib:<br> |
{{SQWareProduction_sqwhbs_GatherIndicators.lib_presentation}} | {{SQWareProduction_sqwhbs_GatherIndicators.lib_presentation}} | ||
− | {{SQWareProductionSurchargeLib|hbase| | + | {{SQWareProductionSurchargeLib|hbase|Hbs|sqwhbs_GatherIndicators.lib}} |
<br> | <br> | ||
[[SQWareProduction:hbase:lib:sqwhbs_GatherIndicators.lib|See the detailed help for sqwhbs_GatherIndicators.lib]]<br><br> | [[SQWareProduction:hbase:lib:sqwhbs_GatherIndicators.lib|See the detailed help for sqwhbs_GatherIndicators.lib]]<br><br> | ||
=== sqwhbs_GatherIndicators_Overload.lib === | === sqwhbs_GatherIndicators_Overload.lib === | ||
− | shell functions library $ | + | shell functions library $gvsqw_HbsBin/../lib/sqwhbs_GatherIndicators_Overload.lib:<br> |
{{SQWareProduction_sqwhbs_GatherIndicators_Overload.lib_presentation}} | {{SQWareProduction_sqwhbs_GatherIndicators_Overload.lib_presentation}} | ||
− | {{SQWareProductionSurchargeLib|hbase| | + | {{SQWareProductionSurchargeLib|hbase|Hbs|sqwhbs_GatherIndicators_Overload.lib}} |
<br> | <br> | ||
[[SQWareProduction:hbase:lib:sqwhbs_GatherIndicators_Overload.lib|See the detailed help for sqwhbs_GatherIndicators_Overload.lib]]<br><br> | [[SQWareProduction:hbase:lib:sqwhbs_GatherIndicators_Overload.lib|See the detailed help for sqwhbs_GatherIndicators_Overload.lib]]<br><br> | ||
=== sqwhbs_GenerateCreateInstance.lib === | === sqwhbs_GenerateCreateInstance.lib === | ||
− | shell functions library $ | + | shell functions library $gvsqw_HbsBin/../lib/sqwhbs_GenerateCreateInstance.lib:<br> |
{{SQWareProduction_sqwhbs_GenerateCreateInstance.lib_presentation}} | {{SQWareProduction_sqwhbs_GenerateCreateInstance.lib_presentation}} | ||
− | {{SQWareProductionSurchargeLib|hbase| | + | {{SQWareProductionSurchargeLib|hbase|Hbs|sqwhbs_GenerateCreateInstance.lib}} |
<br> | <br> | ||
[[SQWareProduction:hbase:lib:sqwhbs_GenerateCreateInstance.lib|See the detailed help for sqwhbs_GenerateCreateInstance.lib]]<br><br> | [[SQWareProduction:hbase:lib:sqwhbs_GenerateCreateInstance.lib|See the detailed help for sqwhbs_GenerateCreateInstance.lib]]<br><br> | ||
=== sqwhbs_Global.lib === | === sqwhbs_Global.lib === | ||
− | shell functions library $ | + | shell functions library $gvsqw_HbsBin/../lib/sqwhbs_Global.lib:<br> |
{{SQWareProduction_sqwhbs_Global.lib_presentation}} | {{SQWareProduction_sqwhbs_Global.lib_presentation}} | ||
− | {{SQWareProductionSurchargeLib|hbase| | + | {{SQWareProductionSurchargeLib|hbase|Hbs|sqwhbs_Global.lib}} |
<br> | <br> | ||
[[SQWareProduction:hbase:lib:sqwhbs_Global.lib|See the detailed help for sqwhbs_Global.lib]]<br><br> | [[SQWareProduction:hbase:lib:sqwhbs_Global.lib|See the detailed help for sqwhbs_Global.lib]]<br><br> | ||
=== sqwhbs_NetBackup.lib === | === sqwhbs_NetBackup.lib === | ||
− | shell functions library $ | + | shell functions library $gvsqw_HbsBin/../lib/sqwhbs_NetBackup.lib:<br> |
{{SQWareProduction_sqwhbs_NetBackup.lib_presentation}} | {{SQWareProduction_sqwhbs_NetBackup.lib_presentation}} | ||
− | {{SQWareProductionSurchargeLib|hbase| | + | {{SQWareProductionSurchargeLib|hbase|Hbs|sqwhbs_NetBackup.lib}} |
<br> | <br> | ||
[[SQWareProduction:hbase:lib:sqwhbs_NetBackup.lib|See the detailed help for sqwhbs_NetBackup.lib]]<br><br> | [[SQWareProduction:hbase:lib:sqwhbs_NetBackup.lib|See the detailed help for sqwhbs_NetBackup.lib]]<br><br> | ||
=== sqwhbs_SetEnv.lib === | === sqwhbs_SetEnv.lib === | ||
− | shell functions library $ | + | shell functions library $gvsqw_HbsBin/../lib/sqwhbs_SetEnv.lib:<br> |
{{SQWareProduction_sqwhbs_SetEnv.lib_presentation}} | {{SQWareProduction_sqwhbs_SetEnv.lib_presentation}} | ||
− | {{SQWareProductionSurchargeLib|hbase| | + | {{SQWareProductionSurchargeLib|hbase|Hbs|sqwhbs_SetEnv.lib}} |
<br> | <br> | ||
[[SQWareProduction:hbase:lib:sqwhbs_SetEnv.lib|See the detailed help for sqwhbs_SetEnv.lib]]<br><br> | [[SQWareProduction:hbase:lib:sqwhbs_SetEnv.lib|See the detailed help for sqwhbs_SetEnv.lib]]<br><br> | ||
Line 108: | Line 108: | ||
== tools == | == tools == | ||
=== sqwhbs_GenerateCreateInstance.ksh === | === sqwhbs_GenerateCreateInstance.ksh === | ||
− | Script $ | + | Script $gvsqw_HbsBin/../tools/sqwhbs_GenerateCreateInstance.ksh:<br> |
{{SQWareProduction_sqwhbs_GenerateCreateInstance.ksh_presentation}} | {{SQWareProduction_sqwhbs_GenerateCreateInstance.ksh_presentation}} | ||
[[SQWareProduction:hbase:tools:sqwhbs_GenerateCreateInstance.ksh|See the detailed help for sqwhbs_GenerateCreateInstance.ksh]]<br><br> | [[SQWareProduction:hbase:tools:sqwhbs_GenerateCreateInstance.ksh|See the detailed help for sqwhbs_GenerateCreateInstance.ksh]]<br><br> | ||
=== sqwhbs_SetEnv.ksh === | === sqwhbs_SetEnv.ksh === | ||
− | Script $ | + | Script $gvsqw_HbsBin/../tools/sqwhbs_SetEnv.ksh:<br> |
{{SQWareProduction_sqwhbs_SetEnv.ksh_presentation}} | {{SQWareProduction_sqwhbs_SetEnv.ksh_presentation}} | ||
<br> | <br> | ||
− | {{SQWareProductionSurchargeToo|hbase| | + | {{SQWareProductionSurchargeToo|hbase|Hbs|sqwhbs_SetEnv.ksh}} |
[[SQWareProduction:hbase:tools:sqwhbs_SetEnv.ksh|See the detailed help for sqwhbs_SetEnv.ksh]]<br><br> | [[SQWareProduction:hbase:tools:sqwhbs_SetEnv.ksh|See the detailed help for sqwhbs_SetEnv.ksh]]<br><br> | ||
Revision as of 20:20, 16 June 2014
Presentation
Usage
It's the module locally operating of hbase.
It is entirely written in ksh and sql.
It allows to manage the operation for hbase.
Example uses of the tool:
- Backup
- Recovery
- Compute statistics
- Indicators collection to store in referential database SQWareRepository
- Rotate logs
- ....
This module is deployed locally on the machine hosting the authorities to manage,
in order to avoid any points of weakness related to an NFS mount or whatever.
The deployment is done through a simple command SQWareCentral module using inventory located in SQWareRepository !
Installation guide for SQWareProduction for hbase
Explanation of directories
Directories located in $gvsqw_HbsBin:
- bin : Directory containing standard scripts
- bin_cust : Directory containing customs scripts for your environnement
- etc : Directory containing the standard files of configuration
- etc_cust : Directory containing the customs files of configuration for your environnement (overload standards)
- help : Directory containing the standard files of help
- help_cust : Directory containing the customs files of help for your environnement
- lib : Directory containing the generic shell function librairies
- lib_cust : Directory containing the generic shell function librairies (overload standards)
- spm : Contain sql query toolkit
- tools : Directory containing the standard scripts used on an ad hoc
- tools_cust : Directory containing the customs scripts used on an ad hoc for your environnement
- menu : Directory containing the standard menus
- menu_cust : Directory containing the custom menus for your environnement
Naming convention of files
The majority of files are named with suffixes:
- *.ksh : for scripts
- *.cfg : for configuration files
- *.lib : for function librairies
- *.hlp : for help files
Naming convention in scripts
In general, the following naming convention is used in all scripts of SQWareProduction:
- gvsqw_ {} : global variable initialized by the environment and / or generic library
- lvsqw_ {} : local variable initialized by the script and / or a specific library
- gfsqw_ {} : function defined by a generic library
- lfsqw_ {} : function defined by the script and / or a specific library
bin
sqwhbs_GatherIndicators.ksh
Script $gvsqw_HbsBin/bin/sqwhbs_GatherIndicators.ksh:
See the detailed help for sqwhbs_GatherIndicators.ksh
sqwhbs_NetBackup.ksh
Script $gvsqw_HbsBin/bin/sqwhbs_NetBackup.ksh:
backup with NetBackup dump/backup files
See the detailed help for sqwhbs_NetBackup.ksh
sqwhbs_ParallelRun.ksh
Script $gvsqw_HbsBin/bin/sqwhbs_ParallelRun.ksh:
Manages the execution of unix commands in parallel mode
Takes in parameter file with unix command to execute
You can choose:
- The parallel degree
- Aggressiveness of run (number of seconds between two runs)
- Aggressiveness of check end (number of seconds between two checks of end)
See the detailed help for sqwhbs_ParallelRun.ksh
sqwhbs_RunJob.ksh
Script $gvsqw_HbsBin/bin/sqwhbs_RunJob.ksh:
Run HBase scripts and generate log and error file
based on $gvsqw_RootCfg/sqwhbs_Jobs.cfg configuration file
compress and purge oldest log files
See the detailed help for sqwhbs_RunJob.ksh
etc
sqwhbs_CreInst_CrontabRef.cfg
Configuration file $gvsqw_HbsBin/../etc/sqwhbs_CreInst_CrontabRef.cfg:
See the detailed help for sqwhbs_CreInst_CrontabRef.cfg
sqwhbs_CreInst_Jobs.cfg
Configuration file $gvsqw_HbsBin/../etc/sqwhbs_CreInst_Jobs.cfg:
See the detailed help for sqwhbs_CreInst_Jobs.cfg
sqwhbs_GlobalVar.cfg
Configuration file $gvsqw_HbsBin/../etc/sqwhbs_GlobalVar.cfg:
Global var for HBase
It contains the operating variables of SQWareProduction.
See the detailed help for sqwhbs_GlobalVar.cfg
.profile
Sample file for .profile $gvsqw_HbsBin/../etc/.profile:
Sample of lines to add to .profile of hbase users.
See the detailed help for .profile
.profile_confort
File to put aliases $gvsqw_HbsBin/../etc/.profile_confort:
Contains confort aliases of SQWareProduction for RDBMS hbase.
See the detailed help for .profile_confort
lib
sqwhbs_GatherIndicators.lib
shell functions library $gvsqw_HbsBin/../lib/sqwhbs_GatherIndicators.lib:
lib for sqwhbs_GatherIndicators.ksh
See the detailed help for sqwhbs_GatherIndicators.lib
sqwhbs_GatherIndicators_Overload.lib
shell functions library $gvsqw_HbsBin/../lib/sqwhbs_GatherIndicators_Overload.lib:
lib for overLoad sqwhbs_GatherIndicators.ksh
See the detailed help for sqwhbs_GatherIndicators_Overload.lib
sqwhbs_GenerateCreateInstance.lib
shell functions library $gvsqw_HbsBin/../lib/sqwhbs_GenerateCreateInstance.lib:
lib for generate create instance
See the detailed help for sqwhbs_GenerateCreateInstance.lib
sqwhbs_Global.lib
shell functions library $gvsqw_HbsBin/../lib/sqwhbs_Global.lib:
central lib of generic fonctions for hbase
See the detailed help for sqwhbs_Global.lib
sqwhbs_NetBackup.lib
shell functions library $gvsqw_HbsBin/../lib/sqwhbs_NetBackup.lib:
lib for sqwgen_NetBackup.ksh
See the detailed help for sqwhbs_NetBackup.lib
sqwhbs_SetEnv.lib
shell functions library $gvsqw_HbsBin/../lib/sqwhbs_SetEnv.lib:
fonction to set env for $HBS_SID
See the detailed help for sqwhbs_SetEnv.lib
tools
sqwhbs_GenerateCreateInstance.ksh
Script $gvsqw_HbsBin/../tools/sqwhbs_GenerateCreateInstance.ksh:
Generate create instance files
See the detailed help for sqwhbs_GenerateCreateInstance.ksh
sqwhbs_SetEnv.ksh
Script $gvsqw_HbsBin/../tools/sqwhbs_SetEnv.ksh:
set env for $HBS_SID
See the detailed help for sqwhbs_SetEnv.ksh
help
Contains help files for -s option of bin scripts.
spm
SQL query toolkit
See the detailed help for spm