You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ilya Suntsov (JIRA)" <ji...@apache.org> on 2016/06/28 13:31:57 UTC

[jira] [Created] (IGNITE-3387) NPE deploy ignite with mesos

Ilya Suntsov created IGNITE-3387:
------------------------------------

             Summary: NPE deploy ignite with mesos
                 Key: IGNITE-3387
                 URL: https://issues.apache.org/jira/browse/IGNITE-3387
             Project: Ignite
          Issue Type: Bug
          Components: general
    Affects Versions: 1.7
            Reporter: Ilya Suntsov
             Fix For: 1.7


I tried to use marathon to deploy ignite with mesos:
{noformat}
curl -X POST -H "Content-type: application/json" --data-binary @marathon.json http://192.168.2.106:8080/v2/apps/
{noformat}

where marathon.json contains:
{noformat}
  "id": "ignition",
  "instances": 1,
  "cpus": 1,
  "mem": 512,
  "ports": [0],
  "uris": [
    "https://s3-us-west-2.amazonaws.com/mesos-1234/ignite-mesos-1.6.0.jar"
  ],
  "env": {
    "IGNITE_NODE_COUNT": "4",
    "MESOS_MASTER_URL": "zk://192.168.2.106:2181/mesos",
    "IGNITE_RUN_CPU_PER_NODE": "2",
    "IGNITE_MEMORY_PER_NODE": "2048",
    "IGNITE_VERSION":"6.6.6"
  },
  "cmd": "java -jar ignite-mesos-1.6.0.jar"
{noformat} 

and got the following exception caused by wrong ignite version from marathon.json:
{noformat}
Exception in thread "Thread-11" java.lang.NullPointerException
	at org.apache.mesos.Protos$CommandInfo$URI$Builder.setValue(Protos.java:8069)
	at org.apache.ignite.mesos.IgniteScheduler.createTask(IgniteScheduler.java:128)
	at org.apache.ignite.mesos.IgniteScheduler.resourceOffers(IgniteScheduler.java:98)

{noformat}

I think we should return another exception/error to be clear what happened.



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