Re: Not able to start ignite node in ubuntu server

2016-08-05 Thread chevy
It is working now. Thank you.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6786.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Not able to start ignite node in ubuntu server

2016-08-05 Thread chevy
But I use same command in my MAC and it works. Anyway, thanks for the help.

Node started but I am not able to connect to this node from different machine. 
I think its SSL issue. What are the steps required to get the node attached to 
cluster?
--
Regards,
Chetan.

From: "Kushal Kumaran [via Apache Ignite Users]" 
>
Date: Friday, August 5, 2016 at 10:54 AM
To: "Chetan.V.Yadav" 
>
Subject: Re: Not able to start ignite node in ubuntu server

On 2016-08-04 15:44, chevy wrote:
> Below is the command I am using -
> I do - cd $IGNITE_HOME and then,
> sudo sh bin/ignite.sh -v config/my-ignite.xml
>  ^^
>  ^^

That is the problem.

You can do either:

$ sudo $IGNITE_HOME/bin/ignite.sh -v $IGNITE_HOME/config/my-ignite.xml

or

$ sudo bash $IGNITE_HOME/bin/ignite.sh -v
$IGNITE_HOME/config/my-ignite.xml

Your sh points to dash.

--
regards,
kushal



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6773.html
To unsubscribe from Not able to start ignite node in ubuntu server, click 
here.
NAML




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6776.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread Kushal Kumaran

On 2016-08-04 15:44, chevy wrote:

Below is the command I am using -
I do - cd $IGNITE_HOME and then,
sudo sh bin/ignite.sh -v config/my-ignite.xml
 ^^
 ^^


That is the problem.

You can do either:

$ sudo $IGNITE_HOME/bin/ignite.sh -v $IGNITE_HOME/config/my-ignite.xml

or

$ sudo bash $IGNITE_HOME/bin/ignite.sh -v 
$IGNITE_HOME/config/my-ignite.xml


Your sh points to dash.

--
regards,
kushal


Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread chevy
Below is the command I am using -
I do - cd $IGNITE_HOME and then,
sudo sh bin/ignite.sh -v config/my-ignite.xml



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6751.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread Kushal Kumaran
How are you starting ignite?  (Exact command line you are running, 
please)


Are you running /bin/sh $IGNITE_HOME/bin/ignite.sh?  Or are you running
just $IGNITE_HOME/bin/ignite.sh?  You should be using the second way.

ignite.sh has a #!/bin/bash line that will ensure it is run by bash.  
But
this only happens if you run the script directly.  If you give the 
script

path as argument to /bin/sh, it may or may not use bash, depending on
where /bin/sh points.

On 2016-08-04 14:47, chevy wrote:

How can I confirm that I am using bash or not?

--
Regards,
Chetan.

 From: "Kushal Kumaran [via Apache Ignite Users]" <[hidden email] [1]>
Date: Thursday, August 4, 2016 at 2:28 PM
To: "Chetan.V.Yadav" <[hidden email] [2]>
Subject: Re: Not able to start ignite node in ubuntu server

Hi,

You appear to be running this in a non-bash shell (dash?).

See this as an example:

% cat test.sh
source test.env

% dash test.sh
test.sh: 1: test.sh: source: not found

Note the similarity with the first error you have.

I did see your message where you mention you are running under
bash, but could you verify that once more?

Please also add the exact command you are running.  If you are
running /bin/sh /path/to/ignite.sh, you might be getting dash.

On 2016-08-03 18:02, chevy wrote:


Hi,

 I am getting below error when I try to start Ignite node in ubuntu
server.
This is the node which I will be connecting from my code which

resides

in a
different machine. I am able to start in my local MAC machine.

bin/ignite.sh: 36: bin/ignite.sh: source: not found
bin/ignite.sh: 41: bin/ignite.sh: checkJava: not found
bin/ignite.sh: 46: bin/ignite.sh: setIgniteHome: not found
bin/ignite.sh: 48: [: unexpected operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/ignite-indexing:
unexpected
operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/ignite-spring:
unexpected
operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/licenses: unexpected



operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/optional: unexpected



operator
bin/ignite.sh: 74: [: unexpected operator
bin/ignite.sh: 64: bin/ignite.sh: : Permission denied
bin/ignite.sh: 76: [: 0: unexpected operator
bin/ignite.sh: 83: [: unexpected operator
bin/ignite.sh: 93: bin/ignite.sh: [[: not found
bin/ignite.sh: 147: [: 0: unexpected operator
bin/ignite.sh: 168: bin/ignite.sh: : Permission denied



Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread chevy
How can I confirm that I am using bash or not?
--
Regards,
Chetan.

From: "Kushal Kumaran [via Apache Ignite Users]" 
>
Date: Thursday, August 4, 2016 at 2:28 PM
To: "Chetan.V.Yadav" 
>
Subject: Re: Not able to start ignite node in ubuntu server

Hi,

You appear to be running this in a non-bash shell (dash?).

See this as an example:

% cat test.sh
source test.env

% dash test.sh
test.sh: 1: test.sh: source: not found

Note the similarity with the first error you have.

I did see your message where you mention you are running under
bash, but could you verify that once more?

Please also add the exact command you are running.  If you are
running /bin/sh /path/to/ignite.sh, you might be getting dash.

On 2016-08-03 18:02, chevy wrote:

> Hi,
>
>  I am getting below error when I try to start Ignite node in ubuntu
> server.
> This is the node which I will be connecting from my code which resides
> in a
> different machine. I am able to start in my local MAC machine.
>
> bin/ignite.sh: 36: bin/ignite.sh: source: not found
> bin/ignite.sh: 41: bin/ignite.sh: checkJava: not found
> bin/ignite.sh: 46: bin/ignite.sh: setIgniteHome: not found
> bin/ignite.sh: 48: [: unexpected operator
> bin/ignite.sh: 65: [:
> /opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/ignite-indexing:
> unexpected
> operator
> bin/ignite.sh: 65: [:
> /opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/ignite-spring:
> unexpected
> operator
> bin/ignite.sh: 65: [:
> /opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/licenses: unexpected
> operator
> bin/ignite.sh: 65: [:
> /opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/optional: unexpected
> operator
> bin/ignite.sh: 74: [: unexpected operator
> bin/ignite.sh: 64: bin/ignite.sh: : Permission denied
> bin/ignite.sh: 76: [: 0: unexpected operator
> bin/ignite.sh: 83: [: unexpected operator
> bin/ignite.sh: 93: bin/ignite.sh: [[: not found
> bin/ignite.sh: 147: [: 0: unexpected operator
> bin/ignite.sh: 168: bin/ignite.sh: : Permission denied
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.



If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6742.html
To unsubscribe from Not able to start ignite node in ubuntu server, click 
here.
NAML




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6744.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread kushal

Hi,

You appear to be running this in a non-bash shell (dash?).

See this as an example:

% cat test.sh
source test.env

% dash test.sh
test.sh: 1: test.sh: source: not found

Note the similarity with the first error you have.

I did see your message where you mention you are running under
bash, but could you verify that once more?

Please also add the exact command you are running.  If you are
running /bin/sh /path/to/ignite.sh, you might be getting dash.

On 2016-08-03 18:02, chevy wrote:

Hi,

 I am getting below error when I try to start Ignite node in ubuntu 
server.
This is the node which I will be connecting from my code which resides 
in a

different machine. I am able to start in my local MAC machine.

bin/ignite.sh: 36: bin/ignite.sh: source: not found
bin/ignite.sh: 41: bin/ignite.sh: checkJava: not found
bin/ignite.sh: 46: bin/ignite.sh: setIgniteHome: not found
bin/ignite.sh: 48: [: unexpected operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/ignite-indexing: 
unexpected

operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/ignite-spring: 
unexpected

operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/licenses: unexpected
operator
bin/ignite.sh: 65: [:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/libs/optional: unexpected
operator
bin/ignite.sh: 74: [: unexpected operator
bin/ignite.sh: 64: bin/ignite.sh: : Permission denied
bin/ignite.sh: 76: [: 0: unexpected operator
bin/ignite.sh: 83: [: unexpected operator
bin/ignite.sh: 93: bin/ignite.sh: [[: not found
bin/ignite.sh: 147: [: 0: unexpected operator
bin/ignite.sh: 168: bin/ignite.sh: : Permission denied



--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread chevy
Yes, it points to "/opt/ignite/apache-ignite-fabric-1.6.0-bin" where where my
ignite.sh is residing.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6740.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Not able to start ignite node in ubuntu server

2016-08-04 Thread chevy
I had already provided full permissions (777) and owner for these
folders/files is root (also starting it as a root user). So I think
permissions are right. I am using same permissions that I have used in my
local setup.

I am running it in bash. It would be great if you can provide insight on
what else I might be missing here.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6731.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Not able to start ignite node in ubuntu server

2016-08-03 Thread vkulichenko
Hi,

First of all, I see bunch of 'Permission denied' errors, so I would check
that the permissions of the Ignite folder are correct.

Also it seems to complain about all the syntax. Are you running bash?

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-start-ignite-node-in-ubuntu-server-tp6707p6722.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.