Permalink
Browse files

fix another introduced bug

  • Loading branch information...
klbostee committed Jul 23, 2010
1 parent c5bb6d9 commit 2c4a80669a3ff4331da3d38494399404ea144211
Showing with 2 additions and 0 deletions.
  1. +2 −0 dumbo/cmd.py
View
@@ -107,6 +107,8 @@ def cat(path, opts):
ls = os.popen('%s %s/bin/hadoop dfs -ls %s' % (hadenv, hadoop, path))
for line in ls:
subpath = line.split()[-1]
+ if not subpath.startswith("/"):
+ continue
dumptb = os.popen('%s %s/bin/hadoop jar %s dumptb %s'
% (hadenv, hadoop, streamingjar, subpath))
ascodeopt = getopt(opts, 'ascode')

0 comments on commit 2c4a806

Please sign in to comment.