hadoop 开发环境搭建
export JAVA_HOME=/data/soft/jdk/jdk1.7.0_71
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
* hard nofile 65536
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<!-- Put site-specific property overrides in this file. -->
<configuration>
<name>hadoop.tmp.dir</name>
<value>/usr/hadoop/tmp</value>
(备注:请先在 /usr/hadoop 目录下建立 tmp 文件夹)
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://192.168.149.128:9000</value>
</property>
</configuration>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/data/soft/hadoop/hadoop-2.2.0/hdfs/name</value>
<final>true</final>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/data/soft/hadoop/hadoop-2.2.0/hdfs/data</value>
</property>
</configuration>
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>192.168.149.128:9001</value>
</property>
</configuration>
~
~
[tank@192 hadoop-2.2.0]$ jps
10680 ResourceManager //yarn
10784 NodeManager
10350 DataNode
10254 NameNode
10527 SecondaryNameNode
最新文章
- 使用UIBezierPath绘制图形
- jQuery基础知识总结
- MySQL 同主机不同数据库之间的复制
- jquery file upload 文件上传插件
- SSH 框架学习之初识Java中的Action、Dao、Service、Model-收藏
- bzoj 2242: [SDOI2011]计算器
- 初次stack-overflow 提交答案
- .NET Core 2.0迁移技巧之MemoryCache问题修复
- c#3.0提供的扩展方法
- PHP 获取ip地址
- 关于Sql server数据 MD5加密
- [转帖] 百度知道: KMS 和OSPP
- linux下export命令添加、删除环境变量(转载)
- Spark机器学习(8):LDA主题模型算法
- Python之路 - 网络编程之粘包
- QtTcp_资料
- 虚拟机中安装 centOS,本地安装 SSH 连接 - 02
- 用WAR的方式部署SpringBoot项目
- 【luogu P2590 [ZJOI2008]树的统计】 题解
- CF525E Anya and Cubes(meet in the middle)
热门文章
- BZOJ3224普通平衡树——非旋转treap
- linux目录文件及系统启动知识
- Android ProgressDialog 简单实用
- windows 环境下通过运行快速启动程序
- Android大学课件SQLite3 数据库操作
- 对比cp和scp命令 将数据从一台linux服务器复制到另一台linux服务器
- 【模板】cdq分治代替树状数组(单点修改,区间查询)
- 洛谷P3953 逛公园(NOIP2017)(最短/长路,拓扑排序,动态规划)
- BZOJ1095 [ZJOI2007] Hide 捉迷藏 (括号序列 + 线段树)
- python中lambda的使用