Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24844

Improve copy of atlas.war

    XMLWordPrintableJSON

Details

    Description

      Atlas Metadata Server's start script in Ambari includes a step to copy atlas.war from the default location to the expanded_webapp_dir. This is performed using File(content=StaticFile), which reads and writes the contents of the war file to/from memory. It may take 1-3 seconds to perform, and is done even if the source and target files are the same, because there is no check on the paths.

      This could be improved:

      1. Use cp to copy
      2. Skip the operation if source and target are the same

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m