Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2237

Nullify the standard output when generating gradle cache

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: docker
    • Labels:
      None

      Description

      The gradle cache generation is using a simple command to achieve:

      ./gradlew -g CACHE_DIR 
      

      However, it will also output bigtop logo and some other annoying messages. We should avoid confusing users.

        Issue Links

          Activity

          Hide
          cos Konstantin Boudnik added a comment -

          Works pretty well indeed, thanks! We also could use org.apache.bigtop.NullOutputStream(), which won't have any memory implications.

          Show
          cos Konstantin Boudnik added a comment - Works pretty well indeed, thanks! We also could use org.apache.bigtop.NullOutputStream(), which won't have any memory implications.
          Hide
          evans_ye Evans Ye added a comment -

          Committed and pushed.

          Show
          evans_ye Evans Ye added a comment - Committed and pushed.
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user evans-ye opened a pull request:

          https://github.com/apache/bigtop/pull/73

          BIGTOP-2237. Nullify the standard output when generating gradle cache

          New PR for updated patch.

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/evans-ye/bigtop BIGTOP-2237

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/bigtop/pull/73.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #73


          commit 14b4c974a92dcdd526e9d043caac6291847aa936
          Author: Evans Ye <evansye@apache.org>
          Date: 2016-01-14T18:42:58Z

          BIGTOP-2237. Nullify the standard output when generating gradle cache


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user evans-ye opened a pull request: https://github.com/apache/bigtop/pull/73 BIGTOP-2237 . Nullify the standard output when generating gradle cache New PR for updated patch. You can merge this pull request into a Git repository by running: $ git pull https://github.com/evans-ye/bigtop BIGTOP-2237 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/bigtop/pull/73.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #73 commit 14b4c974a92dcdd526e9d043caac6291847aa936 Author: Evans Ye <evansye@apache.org> Date: 2016-01-14T18:42:58Z BIGTOP-2237 . Nullify the standard output when generating gradle cache
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user evans-ye closed the pull request at:

          https://github.com/apache/bigtop/pull/70

          Show
          githubbot ASF GitHub Bot added a comment - Github user evans-ye closed the pull request at: https://github.com/apache/bigtop/pull/70
          Hide
          evans_ye Evans Ye added a comment -

          If no objection, I'm going to commit this.

          Show
          evans_ye Evans Ye added a comment - If no objection, I'm going to commit this.
          Hide
          evans_ye Evans Ye added a comment -

          Okay. The PR has been updated using Exec task property: standardOutput. I've tested and it works.

          Show
          evans_ye Evans Ye added a comment - Okay. The PR has been updated using Exec task property: standardOutput . I've tested and it works.
          Hide
          evans_ye Evans Ye added a comment -

          Urghhh...Turns out this don't work. I was too optimistic. Let me revert and provide a new patch...

          Show
          evans_ye Evans Ye added a comment - Urghhh...Turns out this don't work. I was too optimistic. Let me revert and provide a new patch...
          Hide
          evans_ye Evans Ye added a comment -

          As title, send normal messages to /dev/null should solved the problem. Anything bad happened will be flagged out as usual:

          $  (master) ./gradlew -g testcache > /dev/null
          
          FAILURE: Build failed with an exception.
          
          * Where:
          Build file '/Users/evansye/bigtop-development/bigtop-source/build.gradle' line: 26
          
          * What went wrong:
          Error resolving plugin [id: 'de.undercouch.download', version: '2.0.0']
          > Could not GET 'https://plugins.gradle.org/api/gradle/2.7/plugin/use/de.undercouch.download/2.0.0'.
             > plugins.gradle.org: nodename nor servname provided, or not known
          
          * Try:
          Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
          
          Show
          evans_ye Evans Ye added a comment - As title, send normal messages to /dev/null should solved the problem. Anything bad happened will be flagged out as usual: $ (master) ./gradlew -g testcache > /dev/ null FAILURE: Build failed with an exception. * Where: Build file '/Users/evansye/bigtop-development/bigtop-source/build.gradle' line: 26 * What went wrong: Error resolving plugin [id: 'de.undercouch.download', version: '2.0.0'] > Could not GET 'https: //plugins.gradle.org/api/gradle/2.7/plugin/use/de.undercouch.download/2.0.0'. > plugins.gradle.org: nodename nor servname provided, or not known * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user evans-ye opened a pull request:

          https://github.com/apache/bigtop/pull/70

          BIGTOP-2237. Nullify the standard output when generating gradle cache

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/evans-ye/bigtop BIGTOP-2237

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/bigtop/pull/70.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #70


          commit 3086595657900cb694891cf0b2a1d21b62282dd0
          Author: Evans Ye <evansye@apache.org>
          Date: 2016-01-13T17:28:55Z

          BIGTOP-2237. Nullify the standard output when generating gradle cache


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user evans-ye opened a pull request: https://github.com/apache/bigtop/pull/70 BIGTOP-2237 . Nullify the standard output when generating gradle cache You can merge this pull request into a Git repository by running: $ git pull https://github.com/evans-ye/bigtop BIGTOP-2237 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/bigtop/pull/70.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #70 commit 3086595657900cb694891cf0b2a1d21b62282dd0 Author: Evans Ye <evansye@apache.org> Date: 2016-01-13T17:28:55Z BIGTOP-2237 . Nullify the standard output when generating gradle cache

            People

            • Assignee:
              evans_ye Evans Ye
              Reporter:
              evans_ye Evans Ye
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development