Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED7DBCFF7 for ; Tue, 23 Dec 2014 19:02:38 +0000 (UTC) Received: (qmail 92222 invoked by uid 500); 23 Dec 2014 19:02:38 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 92171 invoked by uid 500); 23 Dec 2014 19:02:38 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 92161 invoked by uid 99); 23 Dec 2014 19:02:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 19:02:37 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marpierc@iu.edu designates 129.79.1.194 as permitted sender) Received: from [129.79.1.194] (HELO hartman.uits.indiana.edu) (129.79.1.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 19:02:09 +0000 X-IronPort-AV: E=Sophos;i="5.07,633,1413259200"; d="scan'208";a="206727369" Received: from mssg-relay.indiana.edu ([129.79.1.73]) by irpt-internal-relay.indiana.edu with ESMTP; 23 Dec 2014 14:01:05 -0500 Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mssg-relay.indiana.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id sBNJ15Eo021335 for ; Tue, 23 Dec 2014 14:01:05 -0500 X-IronPort-AV: E=Sophos;i="5.07,633,1413259200"; d="scan'208";a="206330859" Received: from candy.uits.indiana.edu (HELO mail-relay.iu.edu) ([129.79.1.201]) by irpt-internal-relay.indiana.edu with ESMTP; 23 Dec 2014 14:01:03 -0500 Received: from 149-160-240-168.dhcp-bl.indiana.edu (149-160-240-168.dhcp-bl.indiana.edu [149.160.240.168]) (authenticated bits=0) by mail-relay.iu.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id sBNJ13vK002381 for ; Tue, 23 Dec 2014 14:01:03 -0500 Message-ID: <5499BBEF.2040104@iu.edu> Date: Tue, 23 Dec 2014 14:01:03 -0500 From: Marlon Pierce User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Airavata Dev Subject: "input" and "output" subdirs in working directories Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org When Airavata executes a remote command (launching a SLURM job, for example), it creates a working directory on the target machine's scratch space and two subdirectories, "input" and "output". Is there a good reason for creating these two subdirectories? Why not just do all the work in the top level of the working directory? It seems unnecessary. Also, I don't understand why these are in the GFAC module, as these should be constructed from Registry information. Below is background information. -------------- Below is an example working directory. $ cd /oasis/scratch/trestles/ogce/temp_project/gta-work-dirs/TEST_8b10aa04-95c3-4695-af77-d3b3987c7ef9/ $ ls -tlr total 20 drwxr-xr-x 2 ogce sds128 4096 Dec 23 07:17 output -rw-r--r-- 1 ogce sds128 831 Dec 23 07:39 1203922204.pbs -rw------- 1 ogce sds128 28 Dec 23 07:40 Gaussian.stdout -rw------- 1 ogce sds128 663 Dec 23 07:40 Gaussian.stderr drwxr-xr-x 2 ogce sds128 4096 Dec 23 07:47 input The names of these subdirectories are specified in Constants.java (as OUTPUT_DATA_DIR_VAR_NAME and INPUT_DATA_DIR_VAR_NAME). Below are the files in the GFAC module that use these two constants. $ find ./modules/gfac -type f -exec grep -il "OUTPUT_DATA_DIR_VAR" {} \; | grep java|grep -v target ./modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/Constants.java ./modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java ./modules/gfac/gfac-gram/src/main/java/org/apache/airavata/gfac/gram/util/GramRSLGenerator.java ./modules/gfac/gfac-local/src/main/java/org/apache/airavata/gfac/local/provider/impl/LocalProvider.java ./modules/gfac/gfac-ssh/src/main/java/org/apache/airavata/gfac/ssh/provider/impl/SSHProvider.java So we would need to clean these up if we remove the constants. Marlon