Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

HST Agent Install fails looking for jre/bin/jar

Explorer
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

Explorer

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

View solution in original post

3 REPLIES 3

Explorer

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

Explorer

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.

New Contributor

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

Regards.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.