[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flume-dev
Subject:    [jira] [Updated] (FLUME-2806) flume-ng.ps1 Error running script to start an agent on Windows
From:       "Roshan Naik (JIRA)" <jira () apache ! org>
Date:       2015-12-29 20:57:49
Message-ID: JIRA.12902191.1443815161000.24037.1451422669598 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/FLUME-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Roshan Naik updated FLUME-2806:
-------------------------------
    Assignee: Liam Mousseau

> flume-ng.ps1 Error running script to start an agent on Windows
> --------------------------------------------------------------
> 
> Key: FLUME-2806
> URL: https://issues.apache.org/jira/browse/FLUME-2806
> Project: Flume
> Issue Type: Bug
> Affects Versions: v1.6.0
> Environment: Windows 8
> Reporter: Liam Mousseau
> Assignee: Liam Mousseau
> Attachments: flume-ng.ps1.txt
> 
> Original Estimate: 1h
> Remaining Estimate: 1h
> 
> Error:
> {noformat}
> 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 {noformat}
> Fix: Remove the 'ss' on line 169:
> {noformat}
> ...
> 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 + '"'
> }
> ...
> {noformat}
> Work-around: Remove the ss on line 169 manually in the powershell script and try \
> again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic