Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2806

flume-ng.ps1 Error running script to start an agent on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 8

      Description

      Error:

      C:\...\flume-ng.ps1 : The term 'ss' is not recognized as the name of a cmdlet, function,
      script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
      correct and try again.
      At line:1 char:1
      + .\bin\flume-ng.ps1 agent -n Flume_Test_Agent -f conf\flume-conf.properties.templ ...
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : ObjectNotFound: (ss:String) [flume-ng.ps1], CommandNotFoundException
          + FullyQualifiedErrorId : CommandNotFoundException,flume-ng.ps1
      

      Fix: Remove the 'ss' on line 169:

      ...
      Function GetJavaPath {
          if ($env:JAVA_HOME) {
              return "$env:JAVA_HOME\bin\java.exe" }ss
          Write-Host "WARN: JAVA_HOME not set"
          return '"' + (Resolve-Path "java.exe").Path + '"'
      }
      ...
      

      Work-around: Remove the ss on line 169 manually in the powershell script and try again.

      1. flume-ng.ps1.txt
        11 kB
        Liam Mousseau

        Issue Links

          Activity

          Hide
          lmousseau Liam Mousseau added a comment -

          Adding link to feature that introduced the bug

          Show
          lmousseau Liam Mousseau added a comment - Adding link to feature that introduced the bug
          Hide
          lmousseau Liam Mousseau added a comment -

          Attaching fixed file

          Show
          lmousseau Liam Mousseau added a comment - Attaching fixed file
          Hide
          roshan_naik Roshan Naik added a comment -

          +1

          Show
          roshan_naik Roshan Naik added a comment - +1
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 0695585284869a0fefc74fda8e7001be86859917 in flume's branch refs/heads/flume-1.7 from Roshan Naik
          [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=0695585 ]

          FLUME-2806. flume-ng.ps1 Error running script to start an agent on Windows

          (Liam Mousseau via Roshan Naik)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 0695585284869a0fefc74fda8e7001be86859917 in flume's branch refs/heads/flume-1.7 from Roshan Naik [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=0695585 ] FLUME-2806 . flume-ng.ps1 Error running script to start an agent on Windows (Liam Mousseau via Roshan Naik)
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit a8dd873588a282bb832c923010a485ab39ccf37b in flume's branch refs/heads/trunk from Roshan Naik
          [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=a8dd873 ]

          FLUME-2806. flume-ng.ps1 Error running script to start an agent on Windows

          (Liam Mousseau via Roshan Naik)

          Show
          jira-bot ASF subversion and git services added a comment - Commit a8dd873588a282bb832c923010a485ab39ccf37b in flume's branch refs/heads/trunk from Roshan Naik [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=a8dd873 ] FLUME-2806 . flume-ng.ps1 Error running script to start an agent on Windows (Liam Mousseau via Roshan Naik)
          Hide
          roshan_naik Roshan Naik added a comment -

          thanks Liam Mousseau for the contribution.

          committed..

          Show
          roshan_naik Roshan Naik added a comment - thanks Liam Mousseau for the contribution. committed..
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Flume-trunk-hbase-1 #145 (See https://builds.apache.org/job/Flume-trunk-hbase-1/145/)
          FLUME-2806. flume-ng.ps1 Error running script to start an agent on (roshan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=a8dd873588a282bb832c923010a485ab39ccf37b)

          • bin/flume-ng.ps1
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Flume-trunk-hbase-1 #145 (See https://builds.apache.org/job/Flume-trunk-hbase-1/145/ ) FLUME-2806 . flume-ng.ps1 Error running script to start an agent on (roshan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=a8dd873588a282bb832c923010a485ab39ccf37b ) bin/flume-ng.ps1

            People

            • Assignee:
              lmousseau Liam Mousseau
              Reporter:
              lmousseau Liam Mousseau
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development