安装hadoop时 执行jps命令Error occurred during initialization of VM

阅读更多

在安装hadoop时,执行JPS出现下面错误

 

[slave16][email protected]:/tmp/hsperfdata_hdfs# jps

Error occurred during initialization of VM

java.lang.Error: Properties init: Could not determine current working directory.

        at java.lang.System.initProperties(Native Method)

        at java.lang.System.initializeSystemClass(System.java:1119)

 

从错误知道JVM有问题,可以执行java -version命令:

[slave16][email protected]:/tmp/hsperfdata_hdfs#  java -version

Error occurred during initialization of VM

java.lang.Error: Properties init: Could not determine current working directory.

        at java.lang.System.initProperties(Native Method)

        at java.lang.System.initializeSystemClass(System.java:1119)

 

说明jdk路径没生效,执行source ~/.bashrc 命令,再次执行则能正常列出各程序

            

[slave16]root@192.168.11.10:~# source .bashrc

[slave16]root@192.168.11.10:~# java -version

java version "1.7.0_60"

Java(TM) SE Runtime Environment (build 1.7.0_60-b19)

Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

[slave16][email protected]:~# jps

2355 -- process information unavailable

2543 -- process information unavailable

2491 -- process information unavailable

32419 -- process information unavailable

3665 Jps

30393 DataNode

2209 -- process information unavailable

2414 -- process information unavailable

1722 -- process information unavailable

31336 NodeManager

 

 

你可能感兴趣的:(hadoop,jps,jdk,Error,occurred,during,initialization,of,VM)