You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Ivan Veselovsky (JIRA)" <ji...@apache.org> on 2015/03/05 11:29:38 UTC

[jira] [Created] (IGNITE-413) bin/setup-hadoop.sh must work even if IGNITE_HOME is not set.

Ivan Veselovsky created IGNITE-413:
--------------------------------------

             Summary: bin/setup-hadoop.sh must work even if IGNITE_HOME is not set.
                 Key: IGNITE-413
                 URL: https://issues.apache.org/jira/browse/IGNITE-413
             Project: Ignite
          Issue Type: Bug
            Reporter: Ivan Veselovsky
            Assignee: Ivan Veselovsky


Now it does not work:
bin$ ./setup-hadoop.sh 
./setup-hadoop.sh: line 47: /home/ivan/_hadoop-apache-test/bin/include/functions.sh: No such file or directory
./setup-hadoop.sh: line 52: setIgniteHome: command not found
./setup-hadoop.sh: line 62: /home/ivan/_hadoop-apache-test/bin/ignite.sh: No such file or directory

This is because of the line 38 in setup-hadoop.sh:
    then IGNITE_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";IGNITE_HOME_TMP="$(dirname "${IGNITE_HOME_TMP}")" # Will be removed in release.

This is a special code that was needed in older Ignite versions, now it is not needed, should be removed.
Also check if the following code in Maven is present:
                                        <replaceregexp byline="true">
                                            <regexp pattern='IGNITE_HOME_TMP="\$\(dirname "\$\{IGNITE_HOME_TMP\}"\)"(\s*#.*)?'/>
                                            <substitution expression=""/>
                                            <fileset dir="${basedir}/target/release-package/bin">
                                                <include name="**/*.sh"/>
                                            </fileset>
                                        </replaceregexp>
If yes, it also should be removed.



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