Created on 04-18-2020 10:03 AM - edited 09-16-2022 07:36 AM
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
Created 07-03-2020 08:19 AM
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
Created 07-03-2020 08:19 AM
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