airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: fixing advanced output hadnling
Date Thu, 13 Mar 2014 15:10:17 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 615820ac1 -> 60c77db16


fixing advanced output hadnling


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/60c77db1
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/60c77db1
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/60c77db1

Branch: refs/heads/master
Commit: 60c77db167ceec3a9ef61c46d86ca4503ebeada8
Parents: 615820a
Author: lahiru <lahiru@apache.org>
Authored: Thu Mar 13 11:10:09 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Thu Mar 13 11:10:09 2014 -0400

----------------------------------------------------------------------
 .../apache/airavata/gfac/handler/AdvancedSCPOutputHandler.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/60c77db1/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/handler/AdvancedSCPOutputHandler.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/handler/AdvancedSCPOutputHandler.java
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/handler/AdvancedSCPOutputHandler.java
index 66d8fb4..080d3c7 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/handler/AdvancedSCPOutputHandler.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/handler/AdvancedSCPOutputHandler.java
@@ -48,6 +48,9 @@ import java.util.Map;
                         <property name="userName" value="airavata"/>
                         <property name="hostName" value="gw98.iu.xsede.org"/>
                         <property name="outputPath" value="/home/airavata/outputData"/>
+                        <property name="passPhrase" value="/home/airavata/outputData"/>
+                        <property name="password" value="/home/airavata/outputData"/>
+
  */
 public class AdvancedSCPOutputHandler extends AbstractHandler {
     private static final Logger log = LoggerFactory.getLogger(AdvancedSCPOutputHandler.class);
@@ -97,6 +100,7 @@ public class AdvancedSCPOutputHandler extends AbstractHandler {
             Cluster pbsCluster = new PBSCluster(serverInfo, authenticationInfo, CommonUtils.getPBSJobManager("/opt/torque/torque-4.2.3.1/bin/"));
             outputPath = outputPath + File.separator + jobExecutionContext.getExperimentID()
+ "-" + jobExecutionContext.getTaskData().getTaskID()
             + File.separator;
+            pbsCluster.makeDirectory(outputPath);
             pbsCluster.scpTo(outputPath, standardError);
             pbsCluster.scpTo(outputPath,standardOutput);
             for(String files:jobExecutionContext.getOutputFiles()){


Mime
View raw message