Support Questions

Find answers, ask questions, and share your expertise

HST Agent Install fails looking for jre/bin/jar

avatar
Contributor
Hi there,

I'm trying to install HDP 2.5 via Ambari using a local repo (no internet access). At the step "HST Agent Install" on the first master node it's failing with this error:

Failed to execute command: cd /tmp/smartsense-view/ ; /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/jar uf smartsense*view*.jar view.xml; Exit code: 127; stdout: ; stderr: /bin/sh: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/jar: No such file or directory

Sure enough, /jar is missing:

[me@hostname ~]$ ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin
total 188
-rwxr-xr-x 1 root root   7336 Jul 11 00:42 java
-rwxr-xr-x 1 root root   7384 Jul 11 00:42 jjs
-rwxr-xr-x 1 root root   7384 Jul 11 00:42 keytool
-rwxr-xr-x 1 root root   7456 Jul 11 00:42 orbd
-rwxr-xr-x 1 root root   7384 Jul 11 00:42 pack200
-rwxr-xr-x 1 root root   7392 Jul 11 00:42 policytool
-rwxr-xr-x 1 root root   7376 Jul 11 00:42 rmid
-rwxr-xr-x 1 root root   7392 Jul 11 00:42 rmiregistry
-rwxr-xr-x 1 root root   7392 Jul 11 00:42 servertool
-rwxr-xr-x 1 root root   7464 Jul 11 00:42 tnameserv
-rwxr-xr-x 1 root root 107496 Jul 11 00:42 unpack200

yum list installed | grep java- shows:

java-1.8.0-openjdk.x86_64          1:1.8.0.101-3.b13.el7_2   @rhel-7-server-rpms
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-3.b13.el7_2   @rhel-7-server-rpms

Java certainly seems to be installed:

[me@hostname ~]$ which java
/usr/bin/java
[me@hostname ~]$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Oct 13 11:32 /usr/bin/java -> /etc/alternatives/java
[me@hostname ~]$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 73 Oct 13 11:32 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/java
[me@hostname~]$

I'm pretty much stuck here. Any ideas?

Thanks,

JP

1 ACCEPTED SOLUTION

avatar
Contributor

Figured it out. I was missing java-1.8.0-openjdk-devel.

View solution in original post

3 REPLIES 3

avatar
Contributor

Figured it out. I was missing java-1.8.0-openjdk-devel.

avatar
Contributor

I'm afraid there's not much to elaborate on. We figured out that we were missing java-1.8.0-openjdk-devel. We installed the rpm and then everything was fine again.

avatar
New Contributor

Hi, I am facing the same issue. Could you please elaborate on the resolution of the issue? Thanks in advance.

Regards.