|
[
Permlink
| « Hide
]
Steve Loughran added a comment - 25/Feb/09 12:01 PM (GMT)
Hadoop has the copymerge operation to do this; the main reason to do it ourselves would be to handle termination mid-copy better and support patterns for the copy
The current code assumes every URL is to an HDFS filesystem, fails on file:///
[sf-system-test-junit] SFHadoopException:: Failed to initialise filesystem, cause: java.io.IOException: Incomplete HDFS URI, no host: file:///, SmartFrog 3.17.005dev (2009-02-13 11:47:21 GMT) [sf-system-test-junit] at org.smartfrog.services.hadoop.core.SFHadoopException.forward(SFHadoopException.java:279) [sf-system-test-junit] at org.smartfrog.services.hadoop.common.DfsUtils.createFileSystem(DfsUtils.java:140) [sf-system-test-junit] at org.smartfrog.services.hadoop.components.dfs.DfsCopyFilesImpl.performDfsOperation(DfsCopyFilesImpl.java:105) [sf-system-test-junit] at org.smartfrog.services.hadoop.components.dfs.DfsOperationImpl$DfsWorkerThread.execute(DfsOperationImpl.java:115) [sf-system-test-junit] at org.smartfrog.sfcore.utils.SmartFrogThread.run(SmartFrogThread.java:279) [sf-system-test-junit] at org.smartfrog.sfcore.utils.WorkflowThread.run(WorkflowThread.java:117) [sf-system-test-junit] Caused by: java.io.IOException: Incomplete HDFS URI, no host: file:/// [sf-system-test-junit] at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:77) [sf-system-test-junit] at org.smartfrog.services.hadoop.common.DfsUtils.createFileSystem(DfsUtils.java:138) [sf-system-test-junit] at org.smartfrog.test.DeployingTestBase.completeTestDeployment(DeployingTestBase.java:315) [sf-system-test-junit] at org.smartfrog.test.DeployingTestBase.runTestsToCompletion(DeployingTestBase.java:338) [sf-system-test-junit] at org.smartfrog.test.DeployingTestBase.expectSuccessfulTestRunOrSkip(DeployingTestBase.java:439) [sf-system-test-junit] at org.smartfrog.services.hadoop.test.system.local.tracker.JobSubmissionTest.testJobSubmission(JobSubmissionTest.java:39) [sf-system-test-junit] Caused by: SFHadoopException:: Failed to initialise filesystem, cause: java.io.IOException: Incomplete HDFS URI, no host: file:///, SmartFrog 3.17.005dev (2009-02-13 11:47:21 GMT) [sf-system-test-junit] at org.smartfrog.services.hadoop.core.SFHadoopException.forward(SFHadoopException.java:279) [sf-system-test-junit] at org.smartfrog.services.hadoop.common.DfsUtils.createFileSystem(DfsUtils.java:140) [sf-system-test-junit] at org.smartfrog.services.hadoop.components.dfs.DfsCopyFilesImpl.performDfsOperation(DfsCopyFilesImpl.java:105) [sf-system-test-junit] at org.smartfrog.services.hadoop.components.dfs.DfsOperationImpl$DfsWorkerThread.execute(DfsOperationImpl.java:115) [sf-system-test-junit] at org.smartfrog.sfcore.utils.SmartFrogThread.run(SmartFrogThread.java:279) [sf-system-test-junit] at org.smartfrog.sfcore.utils.WorkflowThread.run(WorkflowThread.java:117) [sf-system-test-junit] Caused by: java.io.IOException: Incomplete HDFS URI, no host: file:/// [sf-system-test-junit] at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:77) [sf-system-test-junit] at org.smartfrog.services.hadoop.common.DfsUtils.createFileSystem(DfsUtils.java:138) [sf-system-test-junit] Test org.smartfrog.services.hadoop.test.system.local.tracker.JobSubmissionTest FAILED |
||||||||||||||||||||||||||||||||||||||||||||||