{"action":"closed","issue":{"url":"https://api.github.com/repos/mesos/elasticsearch/issues/585","repository_url":"https://api.github.com/repos/mesos/elasticsearch","labels_url":"https://api.github.com/repos/mesos/elasticsearch/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/mesos/elasticsearch/issues/585/comments","events_url":"https://api.github.com/repos/mesos/elasticsearch/issues/585/events","html_url":"https://github.com/mesos/elasticsearch/issues/585","id":182262743,"number":585,"title":"Using Jar files - failed to bind to [1001]","user":{"login":"dinoba","id":22770284,"avatar_url":"https://avatars.githubusercontent.com/u/22770284?v=3","gravatar_id":"","url":"https://api.github.com/users/dinoba","html_url":"https://github.com/dinoba","followers_url":"https://api.github.com/users/dinoba/followers","following_url":"https://api.github.com/users/dinoba/following{/other_user}","gists_url":"https://api.github.com/users/dinoba/gists{/gist_id}","starred_url":"https://api.github.com/users/dinoba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinoba/subscriptions","organizations_url":"https://api.github.com/users/dinoba/orgs","repos_url":"https://api.github.com/users/dinoba/repos","events_url":"https://api.github.com/users/dinoba/events{/privacy}","received_events_url":"https://api.github.com/users/dinoba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-11T13:24:10Z","updated_at":"2016-10-12T14:38:55Z","closed_at":"2016-10-12T14:38:55Z","body":" I am using this tutorial (http://mesos-elasticsearch.readthedocs.io/en/latest/#how-to-install-on-marathon) to deploy elasticsearch over Marathon.\r\n This is my Marathon request\r\n\r\n{\r\n  \"id\": \"/elasticsearch\",\r\n  \"cmd\": \"java -jar mesos-elasticsearch-scheduler-1.0.1.jar --frameworkUseDocker false --zookeeperMesosUrl zk://192.168.1.21:2181,192.168.1.22:2181,192.168.1.23:2181/mesos --frameworkName elasticsearch --elasticsearchClusterName mesos-elasticsearch --elasticsearchCpu 0.5 --elasticsearchRam 512 --elasticsearchDisk 1024 --elasticsearchNodes 1 --elasticsearchSettingsLocation /home/dino/elasticsearch.yml\",\r\n  \"cpus\": 1,\r\n  \"mem\": 1300,\r\n  \"disk\": 0,\r\n  \"instances\": 0,\r\n  \"env\": {\r\n    \"JAVA_OPTS\": \"-Xms1g -Xmx1g\"\r\n  },\r\n  \"portDefinitions\": [\r\n    {\r\n      \"port\": 31000,\r\n      \"protocol\": \"tcp\",\r\n      \"labels\": {}\r\n    }\r\n  ],\r\n  \"uris\": [\r\n    \"https://github.com/mesos/elasticsearch/releases/download/1.0.1/mesos-elasticsearch-scheduler-1.0.1.jar\"\r\n  ],\r\n  \"fetch\": [\r\n    {\r\n      \"uri\": \"https://github.com/mesos/elasticsearch/releases/download/1.0.1/mesos-elasticsearch-scheduler-1.0.1.jar\",\r\n      \"extract\": false,\r\n      \"executable\": false,\r\n      \"cache\": false\r\n    }\r\n  ]\r\n}\r\n\r\n\r\nAnd this is my error log\r\n\r\n> \r\n> I1011 15:04:42.649909  7621 fetcher.cpp:498] Fetcher Info: {\"cache_directory\":\"\\/tmp\\/mesos\\/fetch\\/slaves\\/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1\\/root\",\"items\":[{\"action\":\"BYPASS_CACHE\",\"uri\":{\"extract\":true,\"value\":\"http:\\/\\/slave1:34882\\/get\\/public\\/elasticsearch.tar.gz\"}},{\"action\":\"BYPASS_CACHE\",\"uri\":{\"extract\":true,\"value\":\"\\/home\\/dino\\/elasticsearch.yml\"}}],\"sandbox_directory\":\"\\/var\\/lib\\/mesos\\/slaves\\/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1\\/frameworks\\/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001\\/executors\\/elasticsearch_192.168.1.18_20161011T150442.461Z\\/runs\\/9e62fa64-cbef-488b-a8ae-188ec16c5c3c\",\"user\":\"root\"}\r\n> I1011 15:04:42.652412  7621 fetcher.cpp:409] Fetching URI 'http://slave1:34882/get/public/elasticsearch.tar.gz'\r\n> I1011 15:04:42.652427  7621 fetcher.cpp:250] Fetching directly into the sandbox directory\r\n> I1011 15:04:42.652446  7621 fetcher.cpp:187] Fetching URI 'http://slave1:34882/get/public/elasticsearch.tar.gz'\r\n> I1011 15:04:42.652457  7621 fetcher.cpp:134] Downloading resource from 'http://slave1:34882/get/public/elasticsearch.tar.gz' to '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c/elasticsearch.tar.gz'\r\n> I1011 15:04:42.749299  7621 fetcher.cpp:84] Extracting with command: tar -C '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c' -xf '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c/elasticsearch.tar.gz'\r\n> I1011 15:04:43.124155  7621 fetcher.cpp:92] Extracted '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c/elasticsearch.tar.gz' into '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c'\r\n> I1011 15:04:43.124197  7621 fetcher.cpp:547] Fetched 'http://slave1:34882/get/public/elasticsearch.tar.gz' to '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c/elasticsearch.tar.gz'\r\n> I1011 15:04:43.124204  7621 fetcher.cpp:409] Fetching URI '/home/dino/elasticsearch.yml'\r\n> I1011 15:04:43.124209  7621 fetcher.cpp:250] Fetching directly into the sandbox directory\r\n> I1011 15:04:43.124233  7621 fetcher.cpp:187] Fetching URI '/home/dino/elasticsearch.yml'\r\n> I1011 15:04:43.124248  7621 fetcher.cpp:167] Copying resource with command:cp '/home/dino/elasticsearch.yml' '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c/elasticsearch.yml'\r\n> W1011 15:04:43.126762  7621 fetcher.cpp:289] Copying instead of extracting resource from URI with 'extract' flag, because it does not seem to be an archive: /home/dino/elasticsearch.yml\r\n> I1011 15:04:43.126803  7621 fetcher.cpp:547] Fetched '/home/dino/elasticsearch.yml' to '/var/lib/mesos/slaves/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1/frameworks/7cb695a7-3336-4fcd-8fcf-670fae5f1cad-0001/executors/elasticsearch_192.168.1.18_20161011T150442.461Z/runs/9e62fa64-cbef-488b-a8ae-188ec16c5c3c/elasticsearch.yml'\r\n> I1011 15:04:43.250669  7615 exec.cpp:161] Version: 1.0.1\r\n> I1011 15:04:43.252912  7628 exec.cpp:236] Executor registered on agent 7cb695a7-3336-4fcd-8fcf-670fae5f1cad-S1\r\n> Exception in thread \"main\" BindTransportException[Failed to bind to [1001]]; nested: ChannelException[Failed to bind to: /0.0.0.0:1001]; nested: SocketException[Permission denied];\r\n> Likely root cause: java.net.SocketException: Permission denied\r\n> \tat sun.nio.ch.Net.bind0(Native Method)\r\n> \tat sun.nio.ch.Net.bind(Net.java:433)\r\n> \tat sun.nio.ch.Net.bind(Net.java:425)\r\n> \tat sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)\r\n> \tat sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)\r\n> \tat org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)\r\n> \tat org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)\r\n> \tat org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)\r\n> \tat org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)\r\n> \tat org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\r\n> \tat org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\r\n> \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n> \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n> \tat java.lang.Thread.run(Thread.java:745)\r\n> Refer to the log for complete error details.\r\n\r\n\r\nWhat am I doing wrong here."}}
{"actor":{"display_login":"dinoba"}}