You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rl...@apache.org on 2017/07/19 03:46:50 UTC
incubator-hawq git commit: HAWQ-1273 - Removed incorrect references
from gplogfilter
Repository: incubator-hawq
Updated Branches:
refs/heads/master 278b3d3c0 -> 993a918fb
HAWQ-1273 - Removed incorrect references from gplogfilter
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/993a918f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/993a918f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/993a918f
Branch: refs/heads/master
Commit: 993a918fbd24487cde88831b194977f4c8d43fbf
Parents: 278b3d3
Author: Shubham Sharma <sh...@gmail.com>
Authored: Mon Jul 17 20:10:14 2017 -0700
Committer: Shubham Sharma <sh...@gmail.com>
Committed: Mon Jul 17 20:10:14 2017 -0700
----------------------------------------------------------------------
tools/bin/gplogfilter | 6 +++---
tools/doc/gplogfilter_help | 36 +++++++++++++++++-------------------
2 files changed, 20 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/993a918f/tools/bin/gplogfilter
----------------------------------------------------------------------
diff --git a/tools/bin/gplogfilter b/tools/bin/gplogfilter
index 682f2b0..a5eda37 100755
--- a/tools/bin/gplogfilter
+++ b/tools/bin/gplogfilter
@@ -84,8 +84,8 @@ file(s) or standard output.
""")
_help = ["""
-If no input file is specified, the value of the MASTER_DATA_DIRECTORY
-is used. If an input file is a
+If no input file is specified, gplogfilter will use master data directory
+to locate the hawq master log file. If an input file is a
directory, the suffix ".log" is appended to obtain the input file name.
To read from standard input, specify input file "-".
""","""
@@ -381,7 +381,7 @@ if (options.zip is None and
options.zip = '9'
try:
- # If no inputfile arg, use MASTER_DATA_DIRECTORY variable as default
+ # If no inputfile arg, use location of master data directory as default
if len(args) == 0:
s = gp.get_masterdatadir()
if s:
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/993a918f/tools/doc/gplogfilter_help
----------------------------------------------------------------------
diff --git a/tools/doc/gplogfilter_help b/tools/doc/gplogfilter_help
index eb2f40b..3a36b8c 100644
--- a/tools/doc/gplogfilter_help
+++ b/tools/doc/gplogfilter_help
@@ -19,21 +19,20 @@ DESCRIPTION
*****************************************************
The gplogfilter utility can be used to search through a
-HAWQ log file for entries matching the specified
+HAWQ log file for entries matching the specified search
criteria. If an input file is not supplied, then gplogfilter will
-use the default MASTER_DATA_DIRECTORY variable to
-locate the HAWQ master log file. To read from standard input,
-use a dash (-) as the input file name. Input files may be compressed
-using gzip. In an input file, a log entry is identified by its
-timestamp in YYYY-MM-DD [hh:mm[:ss]] format.
+use master data directory locate the HAWQ master log file.
+To read from standard input,use a dash (-) as the input file name.
+Input files may be compressed using gzip. In an input file, a log
+entry is identified by its timestamp in YYYY-MM-DD [hh:mm[:ss]] format.
You can also use gplogfilter to search through all segment log
-files at once by running it through the gpssh utility. For example,
+files at once by running it through the hawq ssh utility. For example,
to display the last three lines of each segment log file:
- gpssh -f seg_host_file
- => source /usr/local/greenplum-db/greenplum_path.sh
- => gplogfilter -n 3 /gpdata/gp*.log
+ hawq ssh -f seg_host_file
+ => source /usr/local/hawq/greenplum_path.sh
+ => gplogfilter -n 3 /data/hawq/segment/pg_log/hawq-*
By default, the output of gplogfilter is sent to standard output.
Use the -o option to send the output to a file or a directory.
@@ -156,10 +155,9 @@ INPUT OPTIONS
<input_file>
The name of the input log file(s) to search through. If
-an input file is not supplied, gplogfilter will use the
-default MASTER_DATA_DIRECTORY variable to locate the
-HAWQ master log file. To read from standard input,
-use a dash (-) as the input file name.
+an input file is not supplied, gplogfilter will use master
+data directory to locate the HAWQ master log file. To read
+from standard input, use a dash (-) as the input file name.
-u | --unzip
@@ -196,17 +194,17 @@ string '|con6 cmd11|':
gplogfilter -f '|con6 cmd11|'
-Using gpssh, run gplogfilter on the segment hosts and search
+Using hawq ssh, run gplogfilter on the segment hosts and search
for log messages in the segment log files containing the string
'con6' and save output to a file.
-gpssh -f seg_hosts_file -e 'source
-/usr/local/greenplum-db/greenplum_path.sh ; gplogfilter -f
-con6 /gpdata/*/gp*.log' > seglog.out
+hawq ssh -f seg_hosts_file -e 'source
+/usr/local/hawq/greenplum_path.sh ; gplogfilter -f
+con6 /data/hawq/segment/pg_log/hawq-*' > seglog.out
*****************************************************
SEE ALSO
*****************************************************
-gpssh, gpscp
+hawq ssh, hawq scp