Github user xunzhang commented on a diff in the pull request:
    --- Diff: tools/bin/hawqregister ---
    @@ -397,6 +397,14 @@ class HawqRegister(object):
               '%s is not a file in hdfs, please check 
the yaml configuration file.' % fn)
    +        def check_sizes_valid():
    +            for k, fn in enumerate(self.files):
    +                hdfscmd = 'hdfs dfs -du %s' % fn
    +                _, out, _ = local_ssh_output(hdfscmd)
    +                if self.sizes[k] > int(out.strip().split()[0]):
    +                    logger.error('Incorrect filesize %s in yaml of file 
%s: out of range %s' % (self.sizes[k], fn, out.strip().split()[0]))
    --- End diff --
    @ictmalili done

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to