Slave1 Error:JAVA_HOME is not set and could not be findz
来源:互联网 发布:js变量命名的规则 编辑:程序博客网 时间:2024/06/11 20:56
之前我们配置的JAVAHOME(配置在 etc/profile下或者~/.bashrc 下),主要针对的是linux环境的配置,配置JAVA_HOME的目的如下:
一、为了方便引用,比如,你JDK安装在C:\Program Files\Java\jdk1.6.0目录里,则设置JAVA_HOME为该目录路径, 那么以后你要使用这个路径的时候, 只需输入%JAVA_HOME%即可, 避免每次引用都输入很长的路径串;
二、归一原则, 当你JDK路径被迫改变的时候, 你仅需更改JAVA_HOME的变量值即可, 否则,你就要更改任何用绝对路径引用JDK目录的文档, 要是万一你没有改全, 某个程序找不到JDK, 后果是可想而知的----系统崩溃!
三、第三方软件会引用约定好的JAVA_HOME变量, 不然, 你将不能正常使用该软件, 以后用JAVA久了就会知道, 要是某个软件不能正常使用, 不妨想想是不是这个问题.
针对hadoop平台下,当启动start-dfs.sh出错时,提示标题上的错误,那么可以考虑修改hadoop路径下etc/hadoop/hadoop-env.sh文件,将默认JAVA_HOME=$JAVA_HOME改成JAVA平台的实际安装目录,例如:export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
0 0
- Slave1 Error:JAVA_HOME is not set and could not be findz
- Error:JAVA_HOME is not set and could not be found
- JAVA_HOME is not set and could not be found.
- hadoop2 JAVA_HOME is not set and could not be found
- JAVA_HOME is not set and could not be found
- hadoop start-dfs.sh Error: JAVA_HOME is not set and could not be found
- Hadoop2.7启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop 2.7 伪分布式安装配置 Error: JAVA_HOME is not set and could not be found.
- Error:JAVA_HOME is not set and could not be found 解决般的法
- ubuntu Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop 执行 start-dfs.sh Error: JAVA_HOME is not set and could not be found
- Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found
- 伪分布式启动Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- ganglia的安装部署对spark集群监控
- 行为型模式之迭代器模式(Iterator)
- Dubbo框架——整体架构
- win7系统下mysql 5.7版本root用户忘记密码怎么解决
- 学习笔记: 源码 filler.hpp 简记
- Slave1 Error:JAVA_HOME is not set and could not be findz
- 在ROS中定义并使用自己的消息类型
- RuntimeError: Model class models.Seller doesn't declare an explicit app_label and isn't in an applic
- CSS中伪类及伪元素用法详解
- 如何利用Python对中文进行分词处理
- Android悬浮窗置于任务栏之上
- 让服务器能支持10万并发数秘诀,亲身经历,站在巨人的肩膀上创造
- Volley+ListView制作留言栏
- Spring2 Bean详解