Skip to content

Commit

Permalink
flag for forced softlink
Browse files Browse the repository at this point in the history
  • Loading branch information
bmyerz committed Jun 4, 2015
1 parent 82cd452 commit 9c9f39d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions c_test_environment/grappa_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
p.add_argument("-s", dest="system", help="clang or grappa", default="clang")
p.add_argument("--splits", dest="splits", action="store_true", help="input file is base directory of file splits (e.g. hdfs)")
p.add_argument("--softlink-data", dest="softlink_data", action="store_true", help="data file softlinked rather than copied")
p.add_argument("--local-softlink-data", dest="local_softlink_data", action="store_true", help="softlink locally, only use if --host!=localhost but want local softlink (e.g. NFS)")
p.add_argument("--host", dest="host", help="hostname of server", default="localhost")
p.add_argument("--port", dest="port", help="port server is listening on", default=1337)
p.add_argument("--external-string-index", dest="ext_index", action="store_true", help="Create string external string index that is deprecated after raco@40640adff89e1c1aade007a998b335b623ff22aa")
Expand Down Expand Up @@ -54,8 +55,8 @@ def softlink(self, files):
if len(files) == 0:
return

assert self.hostname == 'localhost', "softlink currently supported " \
"only for localhost"
assert self.hostname == 'localhost' or args.local_softlink_data, "softlink currently supported " \
"only for localhost unless using --local-softlink-data"

path = self._get_upload_path()

Expand Down

0 comments on commit 9c9f39d

Please sign in to comment.