Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-702

JailedFileSystem does not work for relative paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • None

    Description

      If relative path is used for file e.g. falcon/recipes/, it should be created by default in home directory. JailFS creates it at basePath "/Users/sramesh/Workspace/Apache-DR/webapp/target/tmp-hadoop-sramesh/jail-fs/global". FileUtil.copy fails as it expects the relative path files to be created in home directory.

      Caused by: java.io.FileNotFoundException: File /Users/sramesh/Workspace/Apache-DR/webapp/target/tmp-hadoop-sramesh
      /jail-fs/global/user/sramesh/falcon/recipes/process/fs-workflow.xml does not exist
              at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:511)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:724)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:501)
              at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:397)
              at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:137)
              at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:339)
              at org.apache.falcon.hadoop.JailedFileSystem.open(JailedFileSystem.java:80)
              at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:764)
              at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:364)
              at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:338)
              at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:289)
              at org.apache.falcon.update.UpdateHelper.checksumAndCopy(UpdateHelper.java:165)
              ... 51 more
      2014-09-09 22:08:54,661 ERROR - [63380826@qtp-60450373-10:sramesh:POST//entities/validate/PROCESS 2e631af8-6c6e-4b59-8131-14b3d69abbef] ~ Action failed: Bad Request
      

      Attachments

        1. FALCON-702.patch
          0.7 kB
          Sowmya Ramesh

        Issue Links

          Activity

            People

              sowmyaramesh Sowmya Ramesh
              sowmyaramesh Sowmya Ramesh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: