Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

JPS command in cloudera CDH 6 Environment

Solved Go to solution

JPS command in cloudera CDH 6 Environment

Explorer

Hi friends,
Im in CDH 6.2 and hence trying to check jps command through cmd prompt.
Not sure why it is not showing up hadoop services on issuing it and hence returning with below error

[root@cloudera bin]# jps
bash: jps: command not found...

Kindly help me out with this.
Regards,
GTA

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: JPS command in cloudera CDH 6 Environment

Explorer

Looks jps will work, only if the jdk is installed. As in my environment only jre is installed.

 

so tried installing jdk like below

 

yum list java*devel*
Loaded plugins: langpacks, ulninfo
Available Packages
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 ol7_latest
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.261-2.6.22.2.0.1.el7_8 ol7_latest
java-1.8.0-openjdk-devel.i686 1:1.8.0.252.b09-2.el7_8 ol7_latest
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.252.b09-2.el7_8 ol7_latest

[root@cloudera opt]# yum install java-1.8.0-openjdk-devel.x86_64

 

Now i can issue jps and it shows all the hadoop services running.

 

Thanks

 

Regards,

GTA

View solution in original post

1 REPLY 1
Highlighted

Re: JPS command in cloudera CDH 6 Environment

Explorer

Looks jps will work, only if the jdk is installed. As in my environment only jre is installed.

 

so tried installing jdk like below

 

yum list java*devel*
Loaded plugins: langpacks, ulninfo
Available Packages
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 ol7_latest
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.261-2.6.22.2.0.1.el7_8 ol7_latest
java-1.8.0-openjdk-devel.i686 1:1.8.0.252.b09-2.el7_8 ol7_latest
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.252.b09-2.el7_8 ol7_latest

[root@cloudera opt]# yum install java-1.8.0-openjdk-devel.x86_64

 

Now i can issue jps and it shows all the hadoop services running.

 

Thanks

 

Regards,

GTA

View solution in original post

Don't have an account?
Coming from Hortonworks? Activate your account here