You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by parker <pa...@yahoo.com> on 2014/07/14 02:57:07 UTC

how create a node using apache karaf 2.3.5

Hi,

I use Apache Karaf 2.3.5
When I do node-list I can see only one node, how can I create other node ? I
have tried to do admin:create node1 and admin:start node1 , but when i do
that the node is never start , always stop.


 karaf@root> cluster:node-list
   ID                               Host Name              Port 
* [192.168.1.69:5701             ] [192.168.1.69        ] [ 5701]

karaf@root>  cluster:node-ping 192.168.1.69:5701
PING 192.168.1.69:5701
from 1: req=192.168.1.69:5701 time=33 ms
from 2: req=192.168.1.69:5701 time=8 ms
from 3: req=192.168.1.69:5701 time=8 ms
from 4: req=192.168.1.69:5701 time=9 ms
from 5: req=192.168.1.69:5701 time=9 ms
from 6: req=192.168.1.69:5701 time=8 ms
from 7: req=192.168.1.69:5701 time=8 ms
from 8: req=192.168.1.69:5701 time=9 ms
from 9: req=192.168.1.69:5701 time=9 ms
from 10: req=192.168.1.69:5701 time=8 ms



Can you say to me how to  create another node ?


Thank you , 





--
View this message in context: http://karaf.922171.n3.nabble.com/how-create-a-node-using-apache-karaf-2-3-5-tp4034185.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Port offsets

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
With a small improvement in Felix Utils (Properties), it should be 
easily possible ;)

Regards
JB

On 07/14/2014 12:43 PM, Sobkowiak, Krzysztof wrote:
> Yes, I haven't written it. It's a proposal for standalone mode.  Can we
> use in properties files operators like "+" ?
>
>
> On 14.07.2014 12:02, Jean-Baptiste Onofré wrote:
>> t can be define in etc/config.prope
>
> --
> Krzysztof Sobkowiak
>
> JEE & OSS Architect | Technical Architect @ Capgemini
> Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
> <http://www.pl.capgemini-sdm.com/> | Wroclaw
> e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
> Twitter: @KSobkowiak
> Calendar: http://goo.gl/yvsebC

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Port offsets

Posted by "Sobkowiak, Krzysztof" <kr...@gmail.com>.
Yes, I haven't written it. It's a proposal for standalone mode.  Can we
use in properties files operators like "+" ?


On 14.07.2014 12:02, Jean-Baptiste Onofré wrote:
> t can be define in etc/config.prope

-- 
Krzysztof Sobkowiak

JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Calendar: http://goo.gl/yvsebC

Re: Port offsets

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Krzysztof,

The port range is already managed for child instances.

But your proposal is interesting for "standalone" instances.
This offset can be define in etc/config.properties and used in the other 
cfg file (as system properties) to "define" the ports.

Regards
JB

On 07/14/2014 11:44 AM, Sobkowiak, Krzysztof wrote:
> Hi
>
> What do you think about a new feature adding a new parameter
> ***.port-offset (like in WildFly). The default value could be 0. If you
> need another Karaf instance using another ports, you could start Karaf
> with the offset set to any positive value increasing the value of the
> default ports (instead of changing the ports in the configuration files)
>
> Kindly regards
> Krzysztof
>
>
> On 14.07.2014 11:16, Jean-Baptiste Onofré wrote:
>> Hi,
>>
>> ./karaf starts an instance and ./client connects to this instance.
>>
>> Cellar is supposed to work with Karaf instances on different machines.
>>
>> On the same machine, to create/start a new Karaf instance, you have
>> two ways:
>> 1/ you can create a child instance with admin:* commands
>> (admin:create, admin:start, admin:connect, etc). The instance will be
>> on the same machine.
>> 2/ you copy the apache-karaf-2.3.5 folder in another folder, you
>> update the etc/* files to change the port numbers
>> (org.apache.karaf.shell.cfg, org.apache.karaf.management.cfg), and you
>> start this second instance.
>>
>> Regards
>> JB
>>
>> On 07/14/2014 10:58 AM, parker wrote:
>>> Hi ,
>>>
>>> I use Karaf with apache-karaf-2.3.5/bin$ ./karaf and
>>> apache-karaf-2.3.5/bin$
>>> ./client
>>>
>>>
>>> What do you mean by "start another Karaf instance " ?
>>> How to do this ?
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/how-create-a-node-using-apache-karaf-2-3-5-tp4034185p4034199.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>
>>
>
> --
> Krzysztof Sobkowiak
>
> JEE & OSS Architect | Technical Architect @ Capgemini
> Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
> <http://www.pl.capgemini-sdm.com/> | Wroclaw
> e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
> Twitter: @KSobkowiak
> Calendar: http://goo.gl/yvsebC

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Port offsets (was: Re: how create a node using apache karaf 2.3.5)

Posted by "Sobkowiak, Krzysztof" <kr...@gmail.com>.
Hi

What do you think about a new feature adding a new parameter
***.port-offset (like in WildFly). The default value could be 0. If you
need another Karaf instance using another ports, you could start Karaf
with the offset set to any positive value increasing the value of the
default ports (instead of changing the ports in the configuration files)

Kindly regards
Krzysztof


On 14.07.2014 11:16, Jean-Baptiste Onofré wrote:
> Hi,
>
> ./karaf starts an instance and ./client connects to this instance.
>
> Cellar is supposed to work with Karaf instances on different machines.
>
> On the same machine, to create/start a new Karaf instance, you have
> two ways:
> 1/ you can create a child instance with admin:* commands
> (admin:create, admin:start, admin:connect, etc). The instance will be
> on the same machine.
> 2/ you copy the apache-karaf-2.3.5 folder in another folder, you
> update the etc/* files to change the port numbers
> (org.apache.karaf.shell.cfg, org.apache.karaf.management.cfg), and you
> start this second instance.
>
> Regards
> JB
>
> On 07/14/2014 10:58 AM, parker wrote:
>> Hi ,
>>
>> I use Karaf with apache-karaf-2.3.5/bin$ ./karaf and
>> apache-karaf-2.3.5/bin$
>> ./client
>>
>>
>> What do you mean by "start another Karaf instance " ?
>> How to do this ?
>>
>>
>>
>>
>>
>> -- 
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/how-create-a-node-using-apache-karaf-2-3-5-tp4034185p4034199.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak
Calendar: http://goo.gl/yvsebC

Re: how create a node using apache karaf 2.3.5

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

./karaf starts an instance and ./client connects to this instance.

Cellar is supposed to work with Karaf instances on different machines.

On the same machine, to create/start a new Karaf instance, you have two 
ways:
1/ you can create a child instance with admin:* commands (admin:create, 
admin:start, admin:connect, etc). The instance will be on the same machine.
2/ you copy the apache-karaf-2.3.5 folder in another folder, you update 
the etc/* files to change the port numbers (org.apache.karaf.shell.cfg, 
org.apache.karaf.management.cfg), and you start this second instance.

Regards
JB

On 07/14/2014 10:58 AM, parker wrote:
> Hi ,
>
> I use Karaf with apache-karaf-2.3.5/bin$ ./karaf and apache-karaf-2.3.5/bin$
> ./client
>
>
> What do you mean by "start another Karaf instance " ?
> How to do this ?
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/how-create-a-node-using-apache-karaf-2-3-5-tp4034185p4034199.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: how create a node using apache karaf 2.3.5

Posted by parker <pa...@yahoo.com>.
Hi , 

I use Karaf with apache-karaf-2.3.5/bin$ ./karaf and apache-karaf-2.3.5/bin$
./client 
 

What do you mean by "start another Karaf instance " ?
How to do this ?





--
View this message in context: http://karaf.922171.n3.nabble.com/how-create-a-node-using-apache-karaf-2-3-5-tp4034185p4034199.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: how create a node using apache karaf 2.3.5

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

the node is automatically discovered.

As soon as you will start another Karaf instance where you install 
Cellar, it will join the Cellar cluster.

By default, Cellar uses unicast (UDP) to discover the nodes.
In the etc/hazelcast.xml, you can enable:
- multicast (TCP), enabled by default
- static IP/host definition of the nodes (TCP), disabled by default

Regards
JB

On 07/14/2014 02:57 AM, parker wrote:
> Hi,
>
> I use Apache Karaf 2.3.5
> When I do node-list I can see only one node, how can I create other node ? I
> have tried to do admin:create node1 and admin:start node1 , but when i do
> that the node is never start , always stop.
>
>
>   karaf@root> cluster:node-list
>     ID                               Host Name              Port
> * [192.168.1.69:5701             ] [192.168.1.69        ] [ 5701]
>
> karaf@root>  cluster:node-ping 192.168.1.69:5701
> PING 192.168.1.69:5701
> from 1: req=192.168.1.69:5701 time=33 ms
> from 2: req=192.168.1.69:5701 time=8 ms
> from 3: req=192.168.1.69:5701 time=8 ms
> from 4: req=192.168.1.69:5701 time=9 ms
> from 5: req=192.168.1.69:5701 time=9 ms
> from 6: req=192.168.1.69:5701 time=8 ms
> from 7: req=192.168.1.69:5701 time=8 ms
> from 8: req=192.168.1.69:5701 time=9 ms
> from 9: req=192.168.1.69:5701 time=9 ms
> from 10: req=192.168.1.69:5701 time=8 ms
>
>
>
> Can you say to me how to  create another node ?
>
>
> Thank you ,
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/how-create-a-node-using-apache-karaf-2-3-5-tp4034185.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com