Task is failing with java: command not found error

233 views
Skip to first unread message

Abhishek Banerjee

unread,
Dec 10, 2016, 7:31:50 PM12/10/16
to Jenkins Mesos Plugin
Hi, While connecting to the slave I keep getting the following java not found error. Tried setting the JAVA_HOME for that user in ~/.bashrc and ~./profile     I1211 00:25:03.001273 19446 exec.cpp:217] Executor registered on slave 07411174-99b6-4993-afad-aec3d6146347-S0sh: java: command not found

Sunil Shah

unread,
Dec 12, 2016, 12:27:47 PM12/12/16
to Abhishek Banerjee, Jenkins Mesos Plugin
Hi Abhishek,

Looks like that command is using sh, not bash (which is what would normally read in the .bashrc and .profile). Have you tried adding it to /etc/profile?

Sunil

On Sat, Dec 10, 2016 at 4:31 PM, Abhishek Banerjee <abhi...@gmail.com> wrote:
Hi, While connecting to the slave I keep getting the following java not found error. Tried setting the JAVA_HOME for that user in ~/.bashrc and ~./profile     I1211 00:25:03.001273 19446 exec.cpp:217] Executor registered on slave 07411174-99b6-4993-afad-aec3d6146347-S0sh: java: command not found

--
You received this message because you are subscribed to the Google Groups "Jenkins Mesos Plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins-mesos+unsubscribe@googlegroups.com.
To post to this group, send email to jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkins-mesos/68b498dd-cbec-4ba0-ac08-dabbecbd9174%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abhishek Banerjee

unread,
Dec 12, 2016, 6:38:53 PM12/12/16
to Jenkins Mesos Plugin, abhi...@gmail.com
Hi Sunil,
No luck I also added JAVA_HOME to PATH.

Keep getting the following error:

I1212 23:36:38.907589  8646 exec.cpp:143] Version: 0.28.2
I1212 23:36:38.909229  8656 exec.cpp:217] Executor registered on slave 3828e928-b134-428f-b78e-587557f6f052-S0
sh: java: command not found
Thanks,
-Abhsihek

On Monday, December 12, 2016 at 9:27:47 AM UTC-8, Sunil Shah wrote:
Hi Abhishek,

Looks like that command is using sh, not bash (which is what would normally read in the .bashrc and .profile). Have you tried adding it to /etc/profile?

Sunil
On Sat, Dec 10, 2016 at 4:31 PM, Abhishek Banerjee <abhi...@gmail.com> wrote:
Hi, While connecting to the slave I keep getting the following java not found error. Tried setting the JAVA_HOME for that user in ~/.bashrc and ~./profile     I1211 00:25:03.001273 19446 exec.cpp:217] Executor registered on slave 07411174-99b6-4993-afad-aec3d6146347-S0sh: java: command not found

--
You received this message because you are subscribed to the Google Groups "Jenkins Mesos Plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins-meso...@googlegroups.com.

Sunil Shah

unread,
Dec 12, 2016, 8:03:54 PM12/12/16
to Abhishek Banerjee, Jenkins Mesos Plugin
Are you using the Mesos containeriser or Docker? You'll need to make sure your Docker image is set up appropriately.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkins-mesos+unsubscribe@googlegroups.com.

To post to this group, send email to jenkin...@googlegroups.com.

Abhishek Banerjee

unread,
Dec 12, 2016, 8:08:10 PM12/12/16
to Jenkins Mesos Plugin, abhi...@gmail.com
I am not using Docker, installed mesos.

AMITHA HIRIADAKA

unread,
Nov 7, 2018, 1:53:07 AM11/7/18
to Jenkins Mesos Plugin
Hi,
I too see this issue. How did you solve this ?


Regards
Amitha
Reply all
Reply to author
Forward
0 new messages