Repository: ignite Updated Branches: refs/heads/master ef2fb24cc -> 203fe4caa
IGNITE-1023 Visor CMD: Added more info for add "start" command. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/203fe4ca Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/203fe4ca Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/203fe4ca Branch: refs/heads/master Commit: 203fe4caabab0d23308f9a8b83e978ca231fce09 Parents: ef2fb24 Author: Vasiliy Sisko <vsi...@gridgain.com> Authored: Mon Jul 9 17:08:33 2018 +0700 Committer: Alexey Kuznetsov <akuznet...@apache.org> Committed: Mon Jul 9 17:08:33 2018 +0700 ---------------------------------------------------------------------- assembly/release-scala.xml | 1 + .../visorcmd/node_startup_by_ssh.sample.ini | 74 ++++++++++++++++++++ .../commands/start/VisorStartCommand.scala | 4 +- 3 files changed, 78 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/203fe4ca/assembly/release-scala.xml ---------------------------------------------------------------------- diff --git a/assembly/release-scala.xml b/assembly/release-scala.xml index 7456415..0164fec 100644 --- a/assembly/release-scala.xml +++ b/assembly/release-scala.xml @@ -35,6 +35,7 @@ <outputDirectory>/</outputDirectory> <includes> <include>**/ignitevisorcmd.bat</include> + <include>**/include/visorcmd/node_startup_by_ssh.sample.ini</include> </includes> </fileSet> http://git-wip-us.apache.org/repos/asf/ignite/blob/203fe4ca/bin/include/visorcmd/node_startup_by_ssh.sample.ini ---------------------------------------------------------------------- diff --git a/bin/include/visorcmd/node_startup_by_ssh.sample.ini b/bin/include/visorcmd/node_startup_by_ssh.sample.ini new file mode 100644 index 0000000..e50ff29 --- /dev/null +++ b/bin/include/visorcmd/node_startup_by_ssh.sample.ini @@ -0,0 +1,74 @@ +;Licensed to the Apache Software Foundation (ASF) under one or more +;contributor license agreements. See the NOTICE file distributed with +;this work for additional information regarding copyright ownership. +;The ASF licenses this file to You under the Apache License, Version 2.0 +;(the "License"); you may not use this file except in compliance with +;the License. You may obtain a copy of the License at +; +;http://www.apache.org/licenses/LICENSE-2.0 +; +;Unless required by applicable law or agreed to in writing, software +;distributed under the License is distributed on an "AS IS" BASIS, +;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +;See the License for the specific language governing permissions and +;limitations under the License. + +# Section with settings for host1: +[host1] +# IP address or host name: +host=192.168.1.1 + +# SSH port: +port=2200 + +# SSH login: +uname=userName + +# SSH password: +passwd=password + +# SSH key path: +key=~/.ssh/id_rsa + +# Number of nodes to start: +nodes=1 + +# Ignite home path: +igniteHome=/usr/lib/ignite + +# Ignite config path: +cfg=examples/example-ignite.xml + +# Ignite node start script: +script=bin/ignite.sh + +# Section with settings for host2: +[host2] +# IP address or host name: +host=192.168.1.2 + +# Section with default settings. Used if value not defined in host section. +[defaults] +# SSH port: +port=22 + +# SSH login: +uname=userName + +# SSH password: +passwd=password + +# SSH key path: +key=~/.ssh/id_rsa + +# Number of nodes to start: +nodes=3 + +# Ignite home path: +igniteHome=/usr/lib/ignite + +# Ignite config path: +cfg=examples/example-ignite.xml + +# Ignite node start script: +script=bin/ignite.sh http://git-wip-us.apache.org/repos/asf/ignite/blob/203fe4ca/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/start/VisorStartCommand.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/start/VisorStartCommand.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/start/VisorStartCommand.scala index 619ab5d..3081f54 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/start/VisorStartCommand.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/start/VisorStartCommand.scala @@ -317,6 +317,7 @@ class VisorStartCommand extends VisorConsoleCommand { println("NOTE:") println(" - Successful start attempt DOES NOT mean that node actually started.") + println(" - Log files are stored in $TMPDIR/ignite-startNodes folder or /tmp/ignite-startNodes if $TMPDIR is not set.") println(" - For large topologies (> 100s nodes) it can take over 10 minutes for all nodes to start.") println(" - See individual node log for details.") } @@ -344,7 +345,8 @@ object VisorStartCommand { ), args = List( "-f=<path>" -> List( - "Path to INI file that contains topology specification." + "Path to INI file that contains topology specification.", + "For sample INI file refer to 'bin/include/visorcmd/node_startup_by_ssh.sample.ini'." ), "-h=<hostname>" -> List( "Hostname where to start nodes.",