Github user ictmalili commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/919#discussion_r79571607
  
    --- Diff: tools/bin/hawqregister ---
    @@ -397,6 +397,14 @@ class HawqRegister(object):
                         logger.info('%s is not a file in hdfs, please check 
the yaml configuration file.' % fn)
                         sys.exit(1)
     
    +        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 --
    
    File size(%s) in yaml configuration file should not exceed actual 
length(%s) of file %s


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to