HAWQ-778. Add detail error information for hawq register
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/035b48b2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/035b48b2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/035b48b2 Branch: refs/heads/master Commit: 035b48b2c1d055e0c38019d7065c7c5877077375 Parents: 3e3f93d Author: Yancheng Luo <[email protected]> Authored: Tue Jun 7 08:58:40 2016 +0800 Committer: Lili Ma <[email protected]> Committed: Tue Jun 7 11:03:56 2016 +0800 ---------------------------------------------------------------------- tools/bin/hawqregister | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/035b48b2/tools/bin/hawqregister ---------------------------------------------------------------------- diff --git a/tools/bin/hawqregister b/tools/bin/hawqregister index 8e0e621..fe979a9 100755 --- a/tools/bin/hawqregister +++ b/tools/bin/hawqregister @@ -160,11 +160,9 @@ def check_files_and_table_in_same_hdfs_cluster(filepath, tabledir): sys.exit(1) fileroot = filepath.split('/') tableroot = tabledir.split('/') - print fileroot - print tableroot # check the root url of them. eg: for 'hdfs://localhost:8020/temp/tempfile', we check 'hdfs://localohst:8020' if fileroot[0] != tableroot[0] or fileroot[1] != tableroot[1] or fileroot[2] != tableroot[2]: - logger.error("Files to be registered and the table are not in the same hdfs cluster.") + logger.error("Files to be registered and the table are not in the same hdfs cluster.\n Files to be registered are '%s'\n Table path in HDFS is '%s'" % (filepath, tabledir)) sys.exit(1)
