osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complete org.apache.brooklyn.entity.osgi.karaf.KarafContainer YAML Blueprint example



hi Nino

in that case you're probably better to create a new yaml-based entity to launch karaf. brooklyn supports windows, it's just that a lot of the blueprints that come pre-bundled are
limited to certain environments.

what are you looking to do?

best
Alex


On 14/09/2018 10:38, nino martinez wael wrote:
ahh so that Means that currently the KarafContainer does not Work on
Windows? We are heavily forced to use Windows here.. Making it Work on
Windows would require for us to make a set of ps script right?

regards Nino

On Wed, Sep 12, 2018 at 1:10 PM Duncan Grant <duncan.grant@xxxxxxxxxxxx>
wrote:

So KarafContainer is using ssh and bash commands so would need a linux
target.

In general with brooklyn blueprints they will either explicitly document
the required target or by default it'll be "any" linux distro.

There's an example here

https://github.com/apache/brooklyn-library/blob/master/software/nosql/src/main/resources/org/apache/brooklyn/entity/nosql/mongodb/mongodb_win.yaml
of a blueprint that targets an MS Windows location.

Regards

Duncan

On Wed, 12 Sep 2018 at 11:27 nino martinez wael <
nino.martinez.wael@xxxxxxxxx> wrote:

services:
- type: org.apache.brooklyn.entity.osgi.karaf.KarafContainer:0.12.0
location: win7client1

brooklyn.locations:
- type: byon
   brooklyn.config:
     displayName: Windows 7 Client 1
     user: admin
     password: ********
     hosts: [192.168.167.61]

And the error:
ON_FIRE
Service Up

false
Type

org.apache.brooklyn.entity.stock.BasicApplication
ID

ecj47361lz
Required entity not healthy: Karaf (omzghor3xd)
*Failure running task invoking start[locations] on 1 node (Q2idAeJ3)
<

http://192.168.167.60:8081/#/v1/applications/ecj47361lz/entities/ecj47361lz/activities/subtask/Q2idAeJ3
:
*Error
invoking start at KarafContainerImpl{id=omzghor3xd}: SshException: (
admin@192.168.167.61:22) (admin@192.168.167.61:22) error acquiring


Put(path=[/tmp/brooklyn-20180906-170013638-H9HK-initializing_on-box_base_dir_..sh
387]) (attempt 4/4, in time 2.13s/2m); out of retries: No such file

On Wed, Sep 12, 2018 at 11:27 AM Duncan Grant <duncan.grant@xxxxxxxxxxxx

wrote:

Hi,

There's an example here
https://github.com/brooklyncentral/brooklyn-karaf.
I just tried it and it worked fine but it isn't really any different to
your yaml above so I assume the problem may be due to your location.

What error are you getting and what does your location look like?

Regards

Duncan

On Wed, 12 Sep 2018 at 08:55 nino martinez wael <
nino.martinez.wael@xxxxxxxxx> wrote:

Hi

Im playing around with brooklyn and are having a little trouble
getting a
karafcontainer to install

IF I just do this:


services:
- type: org.apache.brooklyn.entity.osgi.karaf.KarafContainer:0.12.0
location: mynode

it fails, so does someone have an example that are complete enough to
install karaf?

--
Best regards / Med venlig hilsen
Nino Martinez

--
Duncan Grant
Software Engineer

*Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud

Need a hand with AWS? Get a Free Consultation.
<https://go.cloudsoft.io/healthcheck/>


--
Best regards / Med venlig hilsen
Nino Martinez

--
Duncan Grant
Software Engineer

*Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud

Need a hand with AWS? Get a Free Consultation.
<https://go.cloudsoft.io/healthcheck/>