You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Tony Kurc (JIRA)" <ji...@apache.org> on 2015/10/20 03:52:27 UTC

[jira] [Comment Edited] (NIFI-1047) nifi.sh script fails from cygwin

    [ https://issues.apache.org/jira/browse/NIFI-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14964372#comment-14964372 ] 

Tony Kurc edited comment on NIFI-1047 at 10/20/15 1:51 AM:
-----------------------------------------------------------

I believe something like this:
{code}
    if $cygwin; then
        CONF_DIR=$(cygpath --path --windows "${CONF_DIR}")
        BOOTSTRAP_LIB_DIR=$(cygpath --path --windows "${BOOTSTRAP_LIB_DIR}")
        BOOTSTRAP_CLASSPATH="${BOOTSTRAP_LIB_DIR};${CONF_DIR}"
    else
        BOOTSTRAP_CLASSPATH="${BOOTSTRAP_LIB_DIR}:${CONF_DIR}"
    fi
{code}

Then launching java like so:
{code}
		(cd $NIFI_HOME && ${sudo_cmd_prefix} "$JAVA" -cp "${BOOTSTRAP_CLASSPATH}" -Xms12m -Xmx24m -Dorg.apache.nifi.bootstrap.config.file="$BOOTSTRAP_CONF" org.apache.nifi.bootstrap.RunNiFi $@ &)
{code}

Would get java launched.  

However, when I did this, start worked, but stop did not. It would kill NiFi then immediately start it (see log below), so something else may be wrong in the environment
{noformat}
2015-10-19 21:38:48,219 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now
2015-10-19 21:38:48,434 WARN [main] org.apache.nifi.bootstrap.RunNiFi Apache NiFi appears to have died. Restarting...
2015-10-19 21:38:48,438 INFO [main] org.apache.nifi.bootstrap.RunNiFi Successfully started Apache NiFi
2015-10-19 21:38:49,053 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read status file C:\cygwin\tmp\nifi-0.3.1-SNAPSHOT.orig\bin\nifi.pid; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file
{noformat}



was (Author: tkurc):
{noformat}

> nifi.sh script fails from cygwin
> --------------------------------
>
>                 Key: NIFI-1047
>                 URL: https://issues.apache.org/jira/browse/NIFI-1047
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.3.0
>         Environment: cygwin on windows 10. jdk 1.7
>            Reporter: Tony Kurc
>            Priority: Minor
>
> jdk fails to find the bootstrap class on the classpath, causing failure



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